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: 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 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php