I have a simple function that calls a select query and populates an array with the results:
$result = mysql_query($query);
for ($n=0; $n < mysql_num_rows($result); $n++)
{
$row = mysql_fetch_assoc($result);
$output[$n] = $row;
}
return $output;
My table has about 60+ fields and mysql_fetch_assoc returns all of them. However when assigning a row of data to the $output array, I lose more than half of the fields.