N00b error
Posted: Wed Jan 26, 2005 3:41 pm
Hi. Taken a long time away from PHP..anyway..straight down to business.
$result=mysql_query("select user from sspp WHERE user='$user'");
if (mysql_num_rows($result)==0) {
With that code i get the error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stormst/public_html/registerc.php on line 16
Why is that? And what could i do to fix it?
$result=mysql_query("select user from sspp WHERE user='$user'");
if (mysql_num_rows($result)==0) {
With that code i get the error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stormst/public_html/registerc.php on line 16
Why is that? And what could i do to fix it?