RE: [PHP-DB] Problem with arrays From: Ryan Jameson (USA) (RJameson <email protected>)
Date: 06/14/02

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 <email protected>]
Sent: Friday, June 14, 2002 4:45 AM
To: php-db <email protected>
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

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php