It's not bizarre behaviour
> $result = mysql_query("SELECT * FROM SOME_TABLE") || die ("Unable to
execute
> SQL query");
returns result of logical OR operation which is TRUE or 1
without || die(...) it returns valid MySQL resource
Regards
Sasha
"Evan Morris" <[EMAIL PROTECTED]> wrote in message
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2003 08:26
>
> 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 S
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