Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

Re: [PHP4BETA] Detecting errors with ODBC From: Andreas Karajannis (Andreas.Karajannis <email protected>)
Date: 12/24/99

Alex P wrote:
>
> Is there a way to suppress error messages in ODBC and then retrieve them
> later so that I can print them to a log? Similiar to the way that the Oracle
> 8 function OCIError works? Thanks.
>

You can suppress error messages by using the @ function prefix or
generally and then later retrieve the error from $PHP_ERROR. AFAIK you
will need to set some ini var like track_errors for this to work.

-Andreas

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>