pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@qwest.net>
To: Elijah O. Alcantara <elijah@asti.dost.gov.ph>
Cc: pgsql-php@postgresql.org
Subject: Re: Resource id #12
Date: Mon, 12 Jul 2004 08:46:35 -0600
Message-ID: <1089643595.3354.4.camel@localhost.localdomain> (raw)
In-Reply-To: <1089609656.13888.9.camel@Falcon>
References: <1089340768.18180.9.camel@Falcon>
	<Pine.BSF.4.58.0407091459400.2007@themode.com>
	<1089596732.11624.3.camel@Falcon>
	<1089598566.11624.12.camel@Falcon>
	<1089609656.13888.9.camel@Falcon>

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.




view thread (6+ messages)  latest in thread

Message-ID: <1089643595.3354.4.camel@localhost.localdomain>
Permalink:  ../1089643595.3354.4.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1089643595.3354.4.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: smarlowe@qwest.net, elijah@asti.dost.gov.ph
  Subject: Re: Resource id #12
  In-Reply-To: <1089643595.3354.4.camel@localhost.localdomain>
  References: <1089340768.18180.9.camel@Falcon> <Pine.BSF.4.58.0407091459400.2007@themode.com> <1089596732.11624.3.camel@Falcon> <1089598566.11624.12.camel@Falcon> <1089609656.13888.9.camel@Falcon> <1089643595.3354.4.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox