Bug #1187: ODBC odbc_lastserror() function
| From: | philip at qs dot co dot nz | Date: | Fri, 26 Feb 1999 08:12:03 +0000 |
| Subject: | Bug #1187: ODBC odbc_lastserror() function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4296@lists.php.net to get a copy of this message | ||
From: philip@qs.co.nz
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@lists.php.net
For help: php-dev-help@lists.php.net