Jump to content

Parse error?


designedfree4u

Recommended Posts

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.