Not a valid mysql result resource???
| From: | Tyler Longren | Date: | Tue, 08 Aug 2000 14:48:52 +0000 |
| Subject: | Not a valid mysql result resource??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10680@lists.php.net to get a copy of this message | ||
Hello everybody,
I've got a question. I get this error for some reason:
Warning: Supplied argument is not a valid MySQL result resource in
/usr/local/apache/htdocs/eds/signform3.php on line 8
here's the lines:
6. $db = mysql_select_db("$mysql_db", $connection);
7. $check = mysql_query("SELECT * FROM $mysql_table WHERE email =
'$email'");
8. $rowcheck = mysql_num_rows($check);
9. if ($rowcheck == "0") {
10. print "That combination of name and email wasn't found in our
databases. Are 11. you sure you typed it in correctly?"; }
Anybody know why this happens? I used almost the EXACT same thing on a
previous project and i didn't have this problem there.
Thanks!
Tyler Longren
http://foo-bar.net