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.

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to