Re: Resource id #12

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Elijah O(dot) Alcantara" <elijah(at)asti(dot)dost(dot)gov(dot)ph>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Resource id #12
Date: 2004-07-12 14:46:35
Message-ID: 1089643595.3354.4.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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.

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Sarah Tanembaum 2004-07-12 21:48:34 Re: [PHP] Secure DB Systems - How to
Previous Message Rajesh Kumar Mallah 2004-07-12 14:07:21 Re: Secure DB Systems - How to