Home > Syntax Error > Parse Error Syntax Error Unexpected T_variable Expecting T_function In Codeigniter

Parse Error Syntax Error Unexpected T_variable Expecting T_function In Codeigniter

Contents

Words that are both anagrams and synonyms of each other What does 'tirar los tejos' mean? "Have permission" vs "have a permission" sort command : -g versus -n flag Select Only Are there any circumstances when the article 'a' is used before the word 'answer'? Are illegal immigrants more likely to commit crimes? Here is all of the code involved: Index.php // Display errors in production mode ini_set('display_errors',1); require 'application/core.php'; ?> core.php controller.php have a peek here

But why not rewrite your WhosOnline method like this: public function DisplayUsers(){ $get_current_status = mysql_query( "SELECT * FROM `online_users` WHERE `room` = '" . But that's besides the point here. am getting the error as Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /ni.class.php on line 34 line34 :$str=$ab->startform('#','post','myform').''. dig this

Expecting Function (t_function) Php

Even the error message alone would be a better answer here. it's late and I'm hungry, haha--it makes sense to me why it wouldn't like that line's placement (now that you've pointed it out.) –jlmakes Mar 3 '11 at 9:20 add a Digital Alarm Clock Where's the 0xBEEF?

more hot questions lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other x x) has a type, then is the type system inconsistent? Reference Sheets Code Snippets C Snippets C++ Snippets Java Snippets Visual Basic Snippets C# Snippets VB.NET Snippets ASP.NET Snippets PHP Snippets Python Snippets Ruby Snippets ColdFusion Snippets SQL Snippets Assembly Snippets Syntax Error Unexpected Function T_function Just out of curiosity creativecoding why is your client running such an old version of PHP?

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Unexpected End Of File, Expecting Function (t_function) The short hand form for the array declaration [] was only introduced in PHP's version of 5.4 (if am not mistaken). Why did they bring C3PO to Jabba's palace and other dangerous missions? As they say above, that's for the reader to implement ;-) Rather use mysql_safe_string(..).

Was This Post Helpful? 1 Back to top MultiQuote Quote + Reply #3 creativecoding Hash != Encryption Reputation: 931 Posts: 3,216 Joined: 19-January 10 Re: Parse error: syntax error, unexpected Syntax Error, Unexpected '->' (t_object_operator) Join them; it only takes a minute: Sign up Parse error: parse error, expecting `T_FUNCTION' in my MVC framework! [closed] up vote 2 down vote favorite I'm following the Create your more hot questions lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other Why does a full moon seem uniformly bright from earth, shouldn't it be dimmer at the "border"?

Unexpected End Of File, Expecting Function (t_function)

Money transfer scam Does the code terminate? http://stackoverflow.com/questions/5178606/parse-error-parse-error-expecting-t-function-in-my-mvc-framework Use prepared statements. –Hammerite May 1 '12 at 18:01 | show 2 more comments up vote 2 down vote you could not initialized any variable directly in class , try this Expecting Function (t_function) Php Why is the old Universal logo used for a 2009 movie? Syntax Error, Unexpected '$data' (t_variable), Expecting Function (t_function) In PHP 4, variables have to be declared with var.

Why do you need IPv6 Neighbor Solicitation to get the MAC address? http://back2cloud.com/syntax-error/parse-error-syntax-error-unexpected-t-variable-expecting-t-function-online-24.php asked 3 years ago viewed 8565 times active 3 years ago Related 330How should I choose an authentication library for CodeIgniter?0Codeigniter Parse error: syntax error, unexpected T_CLASS5PHP Parse error: syntax error, Words that are anagrams of themselves What kind of bugs do "goto" statements lead to? In any case @user1232117, the answer to your question is below, but you should definitely follow this advice as well. –orourkek May 1 '12 at 18:00 Your approach isn't Syntax Error Unexpected '$this' (t_variable)

the error points out to $rn = $_GET['room']; and i dont know why. –user1232117 May 1 '12 at 17:37 This is not how you should do it. php ajax syntax-error share|improve this question edited Aug 30 '12 at 10:18 hakre 134k26216390 asked May 1 '12 at 17:35 user1232117 23114 You made a type somewhere, look in Generating Pythagorean triples below an upper bound "Surprising" examples of Markov chains Why is the old Universal logo used for a 2009 movie? http://back2cloud.com/syntax-error/parse-error-syntax-error-unexpected-t-string-expecting-t-variable-codeigniter.php protected function get_status_query($rn) { return "SELECT * FROM `online_users` WHERE `room` = '".

Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #7 Martyr2 Programming Theoretician Reputation: 4954 Posts: 13,366 Joined: 18-April 07 Re: Parse error: syntax error, unexpected T_STRING Class Constructor Php Everything works _FINE_ on my end. You're getting an error for at least two different reasons here :P –landons Apr 7 '12 at 20:08 add a comment| 1 Answer 1 active oldest votes up vote 4 down

Why don't browser DNS caches mitigate DDOS attacks on DNS providers?

I have a new guy joining the group. Upper bounds for regulators of real quadratic fields What shape is a Calippo? For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 4 Php Class Variables Was the Boeing 747 designed to be supersonic?

Is This A Good Question/Topic? 0 Back to top MultiQuote Quote + Reply Replies To: Parse error: syntax error, unexpected T_STRING #2 Martyr2 Programming Theoretician Reputation: 4954 Posts: 13,366 Joined: Why do you need IPv6 Neighbor Solicitation to get the MAC address? addlabel('label','amtext') .addinput('text','input1','value1').'

'; echo $str; $ab->endform(); Outside of your ni class Basically like this class ni { function startForm() { ... } function addLabel() { ... } function addInput() { ... } this contact form I wrote it for 4.3, but checked it using this (which I have been told isn't that reliable).

Join them; it only takes a minute: Sign up Why am I getting an unexpected T_VARIABLE error in my Code Igniter controller?