| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера