Re: More help with mysql -- solved (bizarre)
| From: | (Evan Morris) | Date: | Tue, 18 Feb 2003 08:25:59 +0000 |
| Subject: | Re: More help with mysql -- solved (bizarre) | ||
| References: | 1 2 3 4 5 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-25720@lists.php.net to get a copy of this message | ||
If I remove the '|| die' part from the mysql_query() statement, it works
fine. This is bizarre, but there it is.
ie, if I have:
$result = mysql_query("SELECT * FROM SOME_TABLE");
it works.
If I have:
$result = mysql_query("SELECT * FROM SOME_TABLE") || die ("Unable to execute
SQL query");
it doesn't work. It gives me: " Supplied argument is not a valid MySQL
result resource"
Anyway, since it works I don't suppose I should complain, but it seems
pretty weird to me nevertheless.