php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1187 ODBC odbc_lastserror() function
Submitted: 1999-02-26 03:12 UTC Modified: 2001-02-10 13:06 UTC
From: philip at qs dot co dot nz Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.6 OS: All
Private report: No CVE-ID: None
 [1999-02-26 03:12 UTC] philip at qs dot co dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 13:06 UTC] jimw@php.net
odbc_error and odbc_errorstr were added (will be in 4.0.5).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC