Re: Resource id #12

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Resource id #12
Дата
Msg-id 1089643595.3354.4.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Resource id #12  ("Elijah O. Alcantara" <elijah@asti.dost.gov.ph>)
Список 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.


В списке pgsql-php по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Resource id #12
Следующее
От: Daniel Struck
Дата:
Сообщение: Re: Secure DB Systems - How to