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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: philip at qs dot co dot nz
New email:
PHP Version: OS:

 

 [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: Fri May 17 11:01:34 2024 UTC