PHP 4.0 Bug #1187 Updated: ODBC odbc_lastserror() function
| From: | jimw@php.net | Date: | Sat, 10 Feb 2001 18:06:26 +0000 |
| Subject: | PHP 4.0 Bug #1187 Updated: ODBC odbc_lastserror() function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46162@lists.php.net to get a copy of this message | ||
ID: 1187
Updated by: jimw
Reported By: philip@qs.co.nz
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
odbc_error and odbc_errorstr were added (will be in 4.0.5).
Previous Comments:
---------------------------------------------------------------------------
[1999-02-26 03:12:03] philip@qs.co.nz
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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=1187&edit=2