I want to put the column names from an sql query into an array
I've tried using
$myfields = mysql_fetch_array($result);
while ( list($key,$value,) = each($myfields))
{
echo " key ".$key;
echo " - value ".$value;
echo "<br>";
}
but it gives me the column names AND the column numbers. Is there a way to just get the names?
Julia