Does anyone know if it is possible to suppress MySQL error messages?
For example
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /var/www/killerspin/public/preview_checkout.php on line 25
Stop using mysql functions on invalid result sets?
This is
Ex.
$number = @mysql_num_rows($result_var);
Having a bit of a brain cramp right now as I normally do not suppress
errors. My apologies if I'm wrong.
The at sign works fine for suppressing error messages from mysql, but I usually have
it at the beginning of the assignment, as in:
@ $number
:
commercial at.
I like strudel.
Rich
-Original Message-
From: Matthew Horn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Supress MySQL error messages...
Ex.
$number = @mysql_num_rows($result_var);
Having a bit