Posts: 3,111
Location: Toronto, Ontario
|
All you have to do is build your own array,
PHP Code:
$data = array(); // initialize is to keep me happy (as you know, in PHP it's not required)
$result = mysql_query("SELECT * FROM mytable");
while($row = mysql_fetch_array($result))
{
$data[] = $row;
}
echo $data[5]['Name']; // echo row 6's field 'Name' (if it were to exist)
|