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 69DD0D1B1D9 for ; Wed, 14 Jul 2004 16:28:08 -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 88018-01 for ; Wed, 14 Jul 2004 19:28:01 +0000 (GMT) Received: from mta1.beanfield.net (mta1.beanfield.net [66.207.192.3]) by svr1.postgresql.org (Postfix) with ESMTP id 582B7D1B199 for ; Wed, 14 Jul 2004 16:27:58 -0300 (ADT) Received: from [192.168.205.247] (gw2tor1nat161.beanfield.net [66.207.192.161] (may be forged)) by mta1.beanfield.net (8.12.11/8.12.6) with ESMTP id i6EJRST0015903; Wed, 14 Jul 2004 15:27:53 -0400 (EDT) (envelope-from lynna@gallery44.org) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Wed, 14 Jul 2004 15:27:49 -0400 Subject: Re: Resource id #12 From: Lynna Landstreet To: "Elijah O. Alcantara" , Message-ID: In-Reply-To: <1089619301.13888.22.camel@Falcon> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/25 X-Sequence-Number: 2850 on 7/12/04 4:01 AM, Elijah O. Alcantara at elijah@asti.dost.gov.ph wrote: > Something that shouldn't be printed ... hmmm.. does the postgresql site > have a list of these Resource id's? I've been looking all over google > for this and found nothing. =( The number doesn't mean anything - it just labels a specific resource that's stored in a variable, which could be a database connection or a result set or any of several other things. I've found that the most common reason for running into a resource ID reference is that I've tried to treat a result set as if it were an array in my code, without having done a pg_fetch_row() or pg_fetch_all() or whatever on it first. I'd suggest seeing what variable contains the resource, and then looking back in your code to see when that variable was defined and what it might contain. If it is a result set, use one of the above functions to turn it into an array before trying to print it. Of course, there are other tricks to printing an array, but that depends on what you're trying to do with it. If you just want to see what's in it, the simplest way is to use print_r(). Lynna -- Resource Centre Database Coordinator Gallery 44: www.gallery44.org Database Project: www.gallery44db.org