From: | Jeff MacDonald <jeff(at)hub(dot)org> |
---|---|
To: | php-db(at)lists(dot)php(dot)net, pgsql-general(at)postgresql(dot)org |
Subject: | Very queer errors with Postgres/PHP |
Date: | 2000-11-17 02:19:06 |
Message-ID: | Pine.BSF.4.21.0011162214210.11440-100000@rage.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Folks,
I'm running PostgreSQL 7.0.2 and PHP 4.0.2 on FreeBSD
4.1.1 Stable (intel)
I'd debugging an application for a client and here's an example
of a repetitive error he's been reporting..
-------------------
Warning: PostgreSQL query failed: ERROR: Attribute 't' not found in
/home/vhosts/mmfreedomclub.com/php-global/conf.php on line 25
Warning: Supplied argument is not a valid PostgreSQL result resource in
/home/vhosts/mmfreedomclub.com/php-global/conf.php on line 26
Warning: PostgreSQL query failed: ERROR: Attribute 't' not found in
/home/vhosts/mmfreedomclub.com/php-global/conf.php on line 52
Warning: Supplied argument is not a valid PostgreSQL result resource in
/home/vhosts/mmfreedomclub.com/php-global/conf.php on line 53
------------------
but.. here's the said lines in each file..
line 25
$select = pg_exec($dbh,"SELECT password FROM members WHERE member_id = $user");
line 26
if (pg_numrows($select) == 0) { return 0; }
line 52
$cp = pg_exec($dbh,"SELECT payed FROM members WHERE member_id = $mid");
line 53
if (pg_result($cp,0,0) == 'f') {
-------------------
Weird eh ?
Jeff MacDonald,
-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
jeff(at)pgsql(dot)com | jeff(at)hub(dot)org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose
From | Date | Subject | |
---|---|---|---|
Next Message | Rich Shepard | 2000-11-17 02:24:27 | Re: Strange problem upgrading to 7.0.3x |
Previous Message | Tom Lane | 2000-11-17 02:15:17 | Re: Strange problem upgrading to 7.0.3x |