Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 627F8475A35 for ; Tue, 18 Jun 2002 03:58:02 -0400 (EDT) Received: from mail.province.ru (unknown [195.146.74.68]) by postgresql.org (Postfix) with SMTP id 40BA74759BA for ; Tue, 18 Jun 2002 03:58:00 -0400 (EDT) Received: (qmail 28607 invoked by uid 0); 18 Jun 2002 08:03:13 -0000 Received: from ns2.province.ru (HELO province.ru) (sasha@195.146.74.72) by mail.province.ru with SMTP; 18 Jun 2002 08:03:13 -0000 Message-ID: <3D0EE82D.9080000@province.ru> Date: Tue, 18 Jun 2002 11:58:37 +0400 From: "Alxander A. Kapralov" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Keary Suska Cc: Postgres-PHP Subject: Re: help !!! References: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200206/30 X-Sequence-Number: 1283 Keary Suska wrote: >Are you sure the offending line is the one you think it is? Line numbers >reported can be misleading since PHP looks at lines differently than most >text editors. There could possibly be an obscure precedence issue with your >if() statement. I recommend getting rid of the first pg_exec call (you are >actually calling the query twice--the pg_exec in the if() statement executes >the query a second time), and changing the if() statement: > >if ( $result = pg_exec( $db, $str ) and $num = pg_numrows($result) ) { > for ($i = 0; $i < $num; $i++) { > $r = pg_fetch_object($result, $i); > echo "