
July 4th, 2000, 05:27 AM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
$query="select * from table";
$result=mysql_query($query);
while ($data[]=mysql_fetch_row($result)){}
This will create $data as a two dimensional array where the first index is the row (starting at 0) and the second index is the field element (starting at 0). Alternately, you can make the second element the name of the table field with:
while ($data[]=mysql_fetch_array($result)){}
|