Re: Very queer errors with Postgres/PHP
| From: | Jeff MacDonald | Date: | Fri, 17 Nov 2000 17:06:10 +0000 |
| Subject: | Re: Very queer errors with Postgres/PHP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4514@lists.php.net to get a copy of this message | ||
the datatype is int4 (actually it's a serial, samething..) there fore
i didn't use the ''s.. funny thing is tho, i haven't been able to reproduce
this error, only my client could. i hate when that happens.
jeff
On Fri, 17 Nov 2000, john slee wrote:
> On Thu, Nov 16, 2000 at 10:19:06PM -0400, Jeff MacDonald wrote:
>
> [ snip ]
>
> > but.. here's the said lines in each file..
> >
> > line 25
> > $select = pg_exec($dbh,"SELECT password FROM members WHERE member_id = $user");
>
> does it give the same errors if you put ' ' around the $user?
> we've had similar problems before, but since you haven't stated the data
> type of member_id.......
>
> [ snip ]
>
> j.
>
>
Jeff MacDonald,
-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
jeff@pgsql.com | jeff@hub.org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose