is posible to have array normal forman array objects

the result of a query is an array objects;
is possible to transform it in an array standard?
artev [ Mi, 11 Juli 2007 20:50 ] [ ID #1765772 ]

Re: is posible to have array normal forman array objects

On Jul 11, 2:50 pm, artev <mailnotspa... [at] notspamm.nn> wrote:
> the result of a query is an array objects;
> is possible to transform it in an array standard?

Difficult to say since you haven't told us what database you're using.

The *_fetch_object functions will return objects, while the
*_fetch_array functions will return arrays.

RTFM.
zeldorblat [ Mi, 11 Juli 2007 21:17 ] [ ID #1765773 ]

Re: is posible to have array normal forman array objects

Il Wed, 11 Jul 2007 12:17:47 -0700, ZeldorBlat ha scritto:

> On Jul 11, 2:50 pm, artev <mailnotspa... [at] notspamm.nn> wrote:
>> the result of a query is an array objects;
>> is possible to transform it in an array standard?
>
> Difficult to say since you haven't told us what database you're using.
>
> The *_fetch_object functions will return objects, while the
> *_fetch_array functions will return arrays.


I use mysql

$query =
"SELECT *
FROM tab1, tab2
WHERE tab1.id = $my_id
AND tab2.nme = $my_name "

the query is an array with objects;
I want cahnge this array
artev [ Mi, 11 Juli 2007 21:54 ] [ ID #1765775 ]
PHP » alt.php » is posible to have array normal forman array objects

Vorheriges Thema: POSTing a form programatically with cURL
Nächstes Thema: Upload works in FF, fails in IE...help?