Re: Query result to an array
| From: | Christian Ista | Date: | Thu, 12 Sep 2002 06:56:02 +0000 |
| Subject: | Re: Query result to an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116088@lists.php.net to get a copy of this message | ||
> array(
> array( $temp[0], $temp[1] ),
> array( $temp[1], $temp[2] )
> )
I thinks it's not the right way.
I have a query, this query can return 1,5,20, 200, ... rows, each row has
5 fields (or more or less).
I'd like a 2 dimensions array, one line by row and each cell is a field
content of the query.
I program in a lot of language C/C++, Java, Delphi, C++Builder,
ColdFusion, C# and I don't undersand why the PHP syntax for this kind of
think is so complex and not clear.
Bye