From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Pete Bass <Peter(dot)Bass(at)baedsl(dot)co(dot)uk> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] Error using update |
Date: | 2000-02-21 23:58:00 |
Message-ID: | Pine.LNX.4.21.0002220050070.349-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2000-02-21, Pete Bass mentioned:
> I'm running Postgres 6.3 with PHP 2 as a web based db application.
I'd strongly advise you to update both of these, since hardly anyone
around here will be able to help you much with these.
> a single record, but instead of only the specified record being updated,
> all the records had the same field updated.
>
> the code used to update the field(s) for a record is:
> $result=pg_Exec($conn,"update $spr set $set where sprid='$sprid'");
Perhaps $set contains a semicolon?
> Also, is it possible to return the number of rows that have been
> updated?
pg_numrows()
--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2000-02-22 00:01:13 | Re: [GENERAL] Passwords |
Previous Message | Peter Eisentraut | 2000-02-21 23:57:44 | Re: [GENERAL] copying databases |