$result = ("select user_id password FROM users WHERE username='$username' AND password=md5('$password')");
password is a reserved word. try this instead:
$result = ("select user_id password FROM users WHERE username='$username' AND `password`=md5('$password')");
Erwin Kerk Web Developer
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php