pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Martinez <jjm@bigbigorg.org>
To: Dan Langille <dan@langille.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: false No rows returned error
Date: Sat, 23 Mar 2002 13:27:58 -0500 (EST)
Message-ID: <Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com> (raw)
In-Reply-To: <20020323173453.D386E3F30@bast.unixathome.org>

On Mar 23, Dan Langille wrote:

> On 23 Mar 2002 at 11:04, Jim Martinez wrote:
> 
> > 
> > $res = pg_exec($conn, $sql) || exit ("query failed: ".__FILE__ . __LINE__ 
> > ."<br> sql is $sql" );
> 
> Change the above to this, just to be sure:
> 
> $res = pg_exec($conn, $sql);
> if (!$res) {
> 	echo "query failed: ".__FILE__ . __LINE__ ."<br> sql is $sql" );
> 	exit;
> }

That worked!  Thanks.

Tom, you were right it was a php issue.  This morning I subscribed to the
pgsql-php list, then accidentally posted to the sql list that I've been
lurking on.

Best regards,
Jim







view thread (5+ messages)

Message-ID: <Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com>
Permalink:  ../Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jjm@bigbigorg.org, dan@langille.org
  Subject: Re: false No rows returned error
  In-Reply-To: <Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com>

* 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