php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7371 how do we get the error message that most odbc drivers provide when it fails.
Submitted: 2000-10-20 14:33 UTC Modified: 2000-10-21 04:14 UTC
From: gordonl at tts-sf dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 3.0.17 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gordonl at tts-sf dot com
New email:
PHP Version: OS:

 

 [2000-10-20 14:33 UTC] gordonl at tts-sf dot com
how do we get the error message that most odbc drivers provide when it fails.

I use the odbc_pconnect function and odbc_exec function to run my set role and sql statements.

If I have statement fail, informix returns an error message. 

How do i get this text so I can find out what went wrong?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-21 04:14 UTC] kara@php.net
Turn "track_errors" on and the last error message will be in $php_errormsg. 

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 19 01:00:02 2026 UTC