PDA

View Full Version : Simple PHP Error



ozgression
01-15-2005, 05:06 PM
On one of the sites I am currently building I am getting this error:

Parse error: parse error, unexpected T_VARIABLE in /home/toolrevi/public_html/db_config.php on line 5

I have a feeling it is easy to fix, but since I am not a programmer, I don't know how to fix it. It is a script I got from someone and I haven't been able to get a reply from them regarding this problem, hence I an trying this forum.

Any help is appreciated...

Cheers

Xander
01-15-2005, 05:37 PM
Ah the lovely T_VARIABLE error message. Unfortunately I don't know offhand what could be causing it. Could you post the lines of code from line 1 to line 6 or 7 (obvisouly removing any sensitive/password stuff if there is). Its probably a missing quote, or escape character.

MarkB
01-15-2005, 05:42 PM
Have you closed all {}, checked that all ' and " have a match, etc? And that you've closed statements with ; :)

ozgression
01-15-2005, 05:49 PM
Fixed it. Turns out it was missing a ;

Cheers...

Chris
01-15-2005, 09:24 PM
Ya... I usually get that when missing a ;

Emancipator
01-16-2005, 03:27 PM
everytime i get a t variable error the first thing i do is fix the missing ;

:P