Forum Moderators: coopster

Message Too Old, No Replies

Can anyone clarify this for me?

i don't understand this error message

         

mylungsarempty

5:16 am on Oct 23, 2003 (gmt 0)

10+ Year Member




Without reading my source code and trying to solve my problem and everthing, can anyone just tell me a little more clearly what is meant by this error message? so that i can narrow down the problem

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /mnt/web_a/d11/s01/b01b9236/www/theindex.php on line 261

dmorison

5:40 am on Oct 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You get that error when PHP is expecting a variable, and gets something else instead.

For example..

echo("Your name is " . name );

..would produce that error because "name" is not variable; it should be $name.

If you can't fix the error just post line 261 of your code, there shouldn't be any need to see any more in order to point a finger at the problem

coopster

10:40 am on Oct 23, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Check your syntax as well. You may be missing a closing brace or semicolon on another statement(s).

Also, if you are operating on an array [us4.php.net], double check your syntax.