From: Chadwick Rolfs <cmr@shell.gis.net>
To: 'pgsql-php@postgresql.org' <pgsql-php@postgresql.org>
Subject: Re: Error Messages
Date: Wed, 10 Jul 2002 16:55:51 -0400 (EDT)
Message-ID: <Pine.SOL.3.96.1020710165100.28090E-100000@shell.gis.net> (raw)
In-Reply-To: <040AE3A029B3D51181D000508BC75D0201387C1E@mercury.sfbcic.com>
On Wed, 10 Jul 2002, Hillensbeck, Preston wrote:
> A while back, someone gave me some php code to print out the values that
> were in certain values and print them to the screen. There was a command
> you had to run before you ran pg_errormessage($function);
>
> Anyone know what I am talking about? I am trying to troubleshoot some code
> and need that function, it was like db_something or other. Thanks.
>
I'm just commenting on this message, and it's attached footer. It looks
like what Preston needs to do is read the footer (below my message, but
before my .sig), and try taking it's advice.
In order to help, I would need to go there myself, anyway :) -- just
thought it was kind-of ironic.
pg_errormessage() does not get a function passed in as an argument, it
gets a connection resource. Perhaps that is what you are looking for,,
you will need to call pg_connect, and pass the returned postgresql
resource to pg_errormessage.
another option is tail /var/log/apache/error.log (yours may be much
different, just wherever your php logs are)
HTH
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
-Chadwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: cmr@shell.gis.net
Subject: Re: Error Messages
In-Reply-To: <Pine.SOL.3.96.1020710165100.28090E-100000@shell.gis.net>
References: <040AE3A029B3D51181D000508BC75D0201387C1E@mercury.sfbcic.com> <Pine.SOL.3.96.1020710165100.28090E-100000@shell.gis.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox