Re: [PHP4BETA] ODBC and Error reporting

From: Date: Mon, 06 Dec 1999 18:12:44 +0000
Subject: Re: [PHP4BETA] ODBC and Error reporting
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7540@lists.php.net to get a copy of this message
Nick Gorham wrote: > > Has anyone any objection to me changing the way ODBC error are > reported, At the monment only one error is displayed, this may not be > the error that actualy caused the fault, I am suggestion that on a > error we keep calling SQLError until there are no more errors > available. > > P.S. I promise not to change anything else this time :-) > -- > Nick Gorham, > Easysoft, UK. > Go ahead. On a related issue: There were requests for an explicit odbc_error() function in PHP. I've never implemented such a function, mainly because all relevant errors are reported as they occur and can be accessed through $PHP_ERROR (or something like this) if error reporting was turned off. Additonally, it would be a little bit tricky to implement such an error function, since calling SQLError() clears the associated error, if I remember things right. Any opinions regarding an explicit odbc_error() function? -Andreas

« previous php.version4 (#7540) next »