Try fixing your SQL:
$result = ("select user_id, password FROM users WHERE username='$username'...
You forgot a comma between user_id and password.
Yup, that too. Oops, missed it too.
Erwin Kerk Web Developer
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php