PHP error

Status
Not open for further replies.

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
I am new to PHP and trying to make a user system, I have go the part done where it checks the database to see if user exists but its a bit messed up and I get this error:

JcXis.png


Here is my code:

VwyVz.png
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
I'm just gonna try an edit of Mannys

PHP:
$query = mysql_query("SELECT COUNT (`user_id`) FROM users WHERE username = '{$username}' LIMIT 1") or die(mysql_error());
 
Status
Not open for further replies.

Users who are viewing this thread

Top