designedfree4u Posted March 18, 2008 Share Posted March 18, 2008 I get this error when i try to browse to the page Parse error: syntax error, unexpected T_VARIABLE in /home/jaybirdf/public_html/register.php on line 10 10 $error = array(); 11 if(isset($_POST['username'])) { 12 $result = @mysql_query('SELECT username FROM `users` WHERE username = \''.mysql_real_escape_string($_POST['username']).'\''); 13 if($row = @mysql_fetch_row($result)) { 14 array_push($error, 'Your username is already being used. Please select another.'); 15 } Any ideas? Link to comment https://forums.phpfreaks.com/topic/96792-parse-error/ Share on other sites More sharing options...
Jeremysr Posted March 18, 2008 Share Posted March 18, 2008 It's probably on the line just before 10. Like if you missed a semicolon on line 9 it probably isn't expecting a variable assignment on line 10. Link to comment https://forums.phpfreaks.com/topic/96792-parse-error/#findComment-495321 Share on other sites More sharing options...
designedfree4u Posted March 18, 2008 Author Share Posted March 18, 2008 geez im dumb it was the ; thanks Link to comment https://forums.phpfreaks.com/topic/96792-parse-error/#findComment-495323 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.