The following line generates a "Supplied argument is not a valid MySQL result" error although almost the exact same thing worked in other scripts.
$sql = mysql_query("SELECT username FROM users WHERE username='$username' AND password='$password'");
There has to be a problem somewhere but I don't see where. I tried filling in a username and password manually just to try it out and it still did not work.
I'd be grateful for any help.
/Péter LT.
http://www.ypr.34sp.com
The Young Programmer's Rule