mysql data into array
| From: | Scott Kalbach | Date: | Tue, 13 Mar 2001 20:42:55 +0000 |
| Subject: | mysql data into array | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7426@lists.php.net to get a copy of this message | ||
I fairly new to php and have a question about mysql and arrays.
What I am trying to do is pull multiple rows of data out of a mysql database
and I need to use that data as input for another table. I have tried to use
mysql_fetch_array and have it write to the new table inside a while loop, but
it only enters the first row of data into the new database.
I have also tried to create an array from the data and use that with a
foreach loop to input into a new database. Any suggestions on how to do this
properly?
--
Scott Kalbach