X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C8BA5D1B1DA for ; Mon, 12 Jul 2004 11:45:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75695-06 for ; Mon, 12 Jul 2004 14:45:32 +0000 (GMT) Received: from mpls-qmqp-01.inet.qwest.net (mpls-qmqp-01.inet.qwest.net [63.231.195.112]) by svr1.postgresql.org (Postfix) with SMTP id E3B27D1B1AB for ; Mon, 12 Jul 2004 11:45:20 -0300 (ADT) Received: (qmail 44082 invoked by uid 0); 12 Jul 2004 14:45:30 -0000 Received: from unknown (63.231.195.15) by mpls-qmqp-01.inet.qwest.net with QMQP; 12 Jul 2004 14:45:30 -0000 Received: from 63-227-127-37.dnvr.qwest.net (HELO ?10.0.0.2?) (63.227.127.37) by mpls-pop-15.inet.qwest.net with SMTP; 12 Jul 2004 14:45:30 -0000 Date: Mon, 12 Jul 2004 08:46:35 -0600 Message-Id: <1089643595.3354.4.camel@localhost.localdomain> From: "Scott Marlowe" To: "Elijah O. Alcantara" Cc: pgsql-php@postgresql.org Subject: Re: Resource id #12 In-Reply-To: <1089609656.13888.9.camel@Falcon> References: <1089340768.18180.9.camel@Falcon> <1089596732.11624.3.camel@Falcon> <1089598566.11624.12.camel@Falcon> <1089609656.13888.9.camel@Falcon> Content-Type: text/plain Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/21 X-Sequence-Number: 2846 On Sun, 2004-07-11 at 23:20, Elijah O. Alcantara wrote: > Mind if I ask another question? I've been logging errors lately and > found a 'Resource id #12' in one of the query results, what does this > mean? A "Resource id #12" is a handle to a resource in PHP. It comes from something like this: $conn = pg_connect("... $query = "select * from sometable"; $res = pg_query ($conn,$query); $res will now have something like "Resource id #12" in it. I.e. it's not some constant that means anything, it's a handle to the result set php now has in memory and what you use to access it via the pg_fetch_array functions et. al.