Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Is there a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3108 of 3191
Post > Topic >>

Re: Is there a trace facility for postgres/php?

by gbarosio@[EMAIL PROTECTED] ("Guido Barosio") May 9, 2008 at 01:58 PM

Mary,

    Try this function pg_last_error() :

http://www.php.net/manual/en/function.pg-last-error.php

Regards,
gb.-

On Fri, May 9, 2008 at 1:20 PM, Mary Anderson
<maryfran@[EMAIL PROTECTED]
> wrote:
> Hi all,
>   I am writing a php/postgres application.  I have been printing out
> commands and errors at each step of the way.  In the past I have used a
> trace facility to find out what the last SQL command the database ran.
Is
> such a thing available in php/postgres?  I know how to get the most
recent
> SQL error on a connection and print it out.
>
> Thanks
>
> Mary
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>



-- 
Guido Barosio
-----------------------
http://www.globant.com
guido.barosio@[EMAIL PROTECTED]
 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 2 Posts in Topic:
Is there a trace facility for postgres/php?
maryfran@[EMAIL PROTECTED  2008-05-09 09:20:40 
Re: Is there a trace facility for postgres/php?
gbarosio@[EMAIL PROTECTED  2008-05-09 13:58:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 18:21:57 CDT 2008.