Skip site navigation (1) Skip section navigation (2)

SQLSTATE in PHP?

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: SQLSTATE in PHP?
Date: 2004-03-01 09:31:52
Message-ID: 45EF7AF0-6B63-11D8-89E9-000A95C88220@myrealbox.com (view raw or flat)
Thread:
Lists: pgsql-php
Hey all,

I've been looking for a way to get the SQLSTATE PostgreSQL error code 
from within PHP to build better error-handling within my web 
front-ends. However, I've been unable to find anything. There is 
similar functionality for MySQL in the PHP mysqli_sqlstate() function.

Anyone know of a way to get these error codes from within PHP? Or is 
this a missing feature in PHP's PostgreSQL support?

Thanks for any feedback.

Michael Glaesemann
grzm myrealbox com


Responses

pgsql-php by date

Next:From: Wim PaulussenDate: 2004-03-01 11:00:57
Subject: get list of databases and tables in Postgres
Previous:From: scott.marloweDate: 2004-02-27 21:46:57
Subject: Re: Too many clients

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group