Click to See Complete Forum and Search --> : Really Weird Error
Dragons_Bane
08-07-2003, 07:57 PM
When my script runs I get the following error...
Parse error: parse error, unexpected $ in /home/red/public_html/register.php on line 63
and this is the code on line 63...
'?>'
that's it there is no $ symbol, and I've already checked... I didn't forget the ';' on the previous line.
Any Ideas?¿?¿?¿?¿
Vasilli
08-07-2003, 08:03 PM
Can you post the whole script so i can have a look??
:confused:
Dragons_Bane
08-07-2003, 08:11 PM
Attached is the text file of the whole script, it's a basic register for a forum, I'm new to php and thought this is a good way to get my feet wet (I've coded asp, vb, java/javascript and C++ before) but this error is really %@#@*& me bad.
Vasilli
08-07-2003, 08:55 PM
I have had a good look at the file, i think the problem is that it is expecting something else befor the close of the php (?>)
as i am not all that farmilliar with mySql i can't tell you what exactly.
Sorry i couldn't be of more help.! Also thanks for the relpy on the File Array problem!
Jono
DaiWelsh
08-08-2003, 09:41 AM
if ($url == "http://") : $url = "";
never seen that syntax before, doubt it iis valid, try
if ($url == "http://") { $url = ""; }
and you should get somewhere.
HTH,
Dai
Perhaps it was suppose to look like the conditional operator:
($x > 5) ? $x-$y : $x+$y;
which would be:
if (x > 5) {
$x - $y;
}
else {
$x + $y;
}
Dragons_Bane
08-08-2003, 12:10 PM
DaiWelsh and pyro were right, like I said in the second post, I'm new to php. Thanks so much this fixed it for me. (now I got other errors, but I think i can fix those :cool: )
Thanks again peeps