I assume that the username field is text. You need to add single quotes
around the field.

$validate = mysql_query("SELECT username, user_password FROM users
WHERE username='".$uname."'",$db);

OR simply:

$validate = mysql_query("SELECT username, user_password FROM users
WHERE username='$uname'",$db);

Hope this helps.

Dan

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to