[PHP-DEV] Bug #1187: ODBC odbc_lastserror() function From: philip <email protected>
Date: 02/26/99

From: philip <email protected>
Operating system: All
PHP version: 3.0.6
PHP Bug Type: Feature/Change Request
Bug description: ODBC odbc_lastserror() function

I added the above function to mys version of php
a while ago and have found it very usefull.

The rationale for this is that when an error occurs you
want to send back some meaningfull error message in the
page contents in a formatted manner.
ie <P class=error> Sorry but uodbc_lasterror() occured.
(ie insert record failed).

Thus I created a function odbc_lasterror() that returns the
last error from SQLError.

In my version I strip off everything prior to the actual
error message , as the state info etc is of no value to an
end user.

MTCW.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>