Parse error in PHP - unexpected T_variable at line x. What is this error?
What you should do is check carefully at the lines around where the error is for any simple mistakes - for instance forgetting to include semi-colons at the end of statements, or not using " correctly or ' correctly in your statements.
They can be quite fiddly to find, but by carefully checking the code around the line generating the area, you should be able to find the mistake you have made with your syntax and resolve the T_variable error.
Comment on this Question and Answer >>>
ASK A QUESTION
More errors PHP Questions
PHP error - use of undefined constant at line x... what does this mean?I get this error every time I execute a php program. PHP Warning: Module 'gd' already loaded in Unknown on line 0 PHP Warning: Module 'mysql' already loaded in Unknown on line 0
I get a parse error - unexpected ; at line x message. What is this?
what is the latest release version of PHP.
I get a PHP warning for array to string conversion - what is this?
