RE: [PHP-DB] Problem with arrays
| From: | USA) | Date: | Fri, 14 Jun 2002 15:38:57 +0000 |
| Subject: | RE: [PHP-DB] Problem with arrays | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19812@lists.php.net to get a copy of this message | ||
You'll have to loop through the result using mysql_fetch_array and put that returned array in
each index of your new array. So it would look like this:
for ($i=0;$row=mysql_fetch_array($RESULT);$i++)
$newArray[$i] = $row;
Then $newArray should look like what you want. :-)
<>< Ryan
-----Original Message-----
From: Marcel Schindler [mailto:upexrecords@gmx.net]
Sent: Friday, June 14, 2002 4:45 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Problem with arrays
Hi there,
Sorry for my bad english.
I want to read a table from a mySQL-database and store it in an array built
like this:
$value[column][row];
I am not sure, how this is done.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php