Hey, new to the php/mysql scene and if possible could I get a little help?
Im gettin this error
Warning: Supplied argument is not a valid MySQL result resource in /www/welcometovernon/coupons/update.php on line 9
line 9 reads...
$num = mysql_num_rows($result);
everything up to that point..
@mysql_connect("localhost", "welcometovernon", "bob123")
or die("Unable to connect");
$result = @mysql_db_query("coupons", "SELECT * FROM coupons WHERE username = '$username' AMD (password = '$password')");
$num = mysql_num_rows($result);
password and username are coming from a page before this in a form..
Any ideas?
thanx
talk to you later
Im gettin this error
Warning: Supplied argument is not a valid MySQL result resource in /www/welcometovernon/coupons/update.php on line 9
line 9 reads...
$num = mysql_num_rows($result);
everything up to that point..
@mysql_connect("localhost", "welcometovernon", "bob123")
or die("Unable to connect");
$result = @mysql_db_query("coupons", "SELECT * FROM coupons WHERE username = '$username' AMD (password = '$password')");
$num = mysql_num_rows($result);
password and username are coming from a page before this in a form..
Any ideas?
thanx
talk to you later