| From: | Jim Martinez <jjm(at)bigbigorg(dot)org> |
|---|---|
| To: | Dan Langille <dan(at)langille(dot)org> |
| Cc: | <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: false No rows returned error |
| Date: | 2002-03-23 18:27:58 |
| Message-ID: | Pine.LNX.4.33.0203231309140.7406-100000@unagi.e-techservices.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joe Conway | 2002-03-23 18:48:48 | Re: Binary data in bytea field |
| Previous Message | Iklódi Lajos | 2002-03-23 18:17:50 | Binary data in bytea field |