Re: Supress MySQL error messages...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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 just for testing...

Oh, in that case, use @

$num = @mysql_num_rows($rs);

---John Holmes...

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux