Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 26CE74766A4 for ; Mon, 17 Jun 2002 15:01:20 -0400 (EDT) Mailbox-Line: From poppcorn@cornelia-boenigk.de Mon Jun 17 15:01:20 2002 Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by postgresql.org (Postfix) with ESMTP id 601DF47619F for ; Mon, 17 Jun 2002 14:19:38 -0400 (EDT) Received: from [195.20.224.204] (helo=mrvdom00.kundenserver.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #3) id 17K16G-0007DB-00; Mon, 17 Jun 2002 20:19:36 +0200 Received: from [213.6.250.57] (helo=zwerg98) by mrvdom00.kundenserver.de with smtp (Exim 2.12 #3) id 17K16F-0000iz-00; Mon, 17 Jun 2002 20:19:35 +0200 Message-ID: <004201c2162b$a378c140$7f54fea9@zwerg98> Reply-To: "Cornelia Boenigk" From: "Cornelia Boenigk" To: "Alxander A. Kapralov" , References: <3D0DB73A.2050108@province.ru> Subject: Re: help !!! Date: Mon, 17 Jun 2002 20:18:01 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Status: Yes, hits=5.9 required=5.0 tests=PLING, PLING_PLING, RCVD_IN_OSIRUSOFT_COM, X_OSIRU_SPAM_SRC version=2.20 X-Spam-Flag: YES X-Spam-Level: ***** X-Spam-Checker-Version: SpamAssassin 2.20 (devel $Id: SpamAssassin.pm, v 1.77 2002/04/06 19:28:30 hughescr Exp $) X-Spam-Report: Detailed Report SPAM: -------------------- Start SpamAssassin results ---------------------- SPAM: This mail is probably spam. The original message has been altered SPAM: so you can recognise or block similar unwanted mail in future. SPAM: See http://spamassassin.org/tag/ for more details. SPAM: SPAM: Content analysis details: (5.9 hits, 5 required) SPAM: Hit! (0.5 points) Subject has an exclamation mark SPAM: Hit! (0.4 points) Subject has lots of exclamation marks SPAM: Hit! (2.0 points) Received via a relay in relays.osirusoft.com SPAM: [RBL check: found 204.224.20.195.relays.osirusoft.com., type: 127.0.0.4] SPAM: Hit! (3.0 points) DNSBL: sender is Confirmed Spam Source SPAM: SPAM: -------------------- End of SpamAssassin results --------------------- X-Archive-Number: 200206/31 X-Sequence-Number: 1284 Hi Alxander > $r = pg_fetch_object($result, $i); This syntax is valid since PHP 4.2.0. Are you sure that you use no older PHP-Version? > $result = pg_Exec( $db, $str ); > if ($result = pg_Exec( $db, $str ) != false && ($num = > pg_numrows($result)) ) { In the second line of the code-snippet you execute pg_exec a second time. Write instead: $result = pg_Exec( $db, $str ); if ($result && ($num = pg_numrows($result))) { Regards Conni