From: Richard Dunne on
When I did a search on "resource(5)" within the PHP online documentation, I found the resource page resource.php. While although it lists all the resources used with mysql, it does not mention how resources are related to resource numbers as above. A query such as a row count on a table results in an integer value. What is the best way of accessing or converting the integer value from the resource? I can't see any particular function in the function list which does this, without getting into strings or arrays, or have I missed something blaringly obvious, hope not?



From: "=?ISO-8859-1?Q?Andr=E9s_G._Monta=F1ez?=" on
The ID of the resource changes on every new resource.
There is no co-relation between resources and resources id.

The only thing you can get is the Type of the Resource, read:
* http://www.php.net/manual/en/language.types.resource.php
* http://www.php.net/manual/en/resource.php
* http://www.php.net/manual/en/function.get-resource-type.php


--
Atte, Andrés G. Montañez
PHP Senior
Técnico en Telecomunicaciones
Montevideo - Uruguay
From: "Jon L." on
Here's the manual: http://php.net/language.types.resource

Also: http://php.net/resource
An entire list of all possible resource types and respective functions.

Read up, man.

- Jon L.

On Mon, Mar 31, 2008 at 1:39 PM, Richard Dunne <richarddunne1971(a)o2.ie>
wrote:

> When I did a search on "resource(5)" within the PHP online documentation,
> I found the resource page resource.php. While although it lists all the
> resources used with mysql, it does not mention how resources are related to
> resource numbers as above. A query such as a row count on a table results in
> an integer value. What is the best way of accessing or converting the
> integer value from the resource? I can't see any particular function in the
> function list which does this, without getting into strings or arrays, or
> have I missed something blaringly obvious, hope not?
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
From: "Jon L." on
What I get for not refreshing. ;)

Sorry, man. Didn't know you already gave the links.

- Jon L.

On Mon, Mar 31, 2008 at 1:56 PM, Andrés G. Montañez <
andresmontanez(a)gmail.com> wrote:

> The ID of the resource changes on every new resource.
> There is no co-relation between resources and resources id.
>
> The only thing you can get is the Type of the Resource, read:
> * http://www.php.net/manual/en/language.types.resource.php
> * http://www.php.net/manual/en/resource.php
> * http://www.php.net/manual/en/function.get-resource-type.php
>
>
> --
> Atte, Andrés G. Montañez
> PHP Senior
> Técnico en Telecomunicaciones
> Montevideo - Uruguay
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>