RE: [PHP-DB] Supress MySQL error messages...
| From: | Hutchins, Richard | Date: | Tue, 27 May 2003 15:04:48 +0000 |
| Subject: | RE: [PHP-DB] Supress MySQL error messages... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-28089@lists.php.net to get a copy of this message | ||
Off the top of my head, I think the ampersand in front of the mysql function
is what you want.
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.
Rich
> -----Original Message-----
> From: Jonathan Villa [mailto:jvilla@isdesigndev.com]
> Sent: Tuesday, May 27, 2003 10:55 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Supress MySQL error messages...
>
>
> 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
>
> This is just for testing...
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>