Here is how I code such things. This has
worked for me. I think the problem is that
you have to index into row[] with an integer:
$numfields = mysql_num_fields($sql_result);
while ($row = mysql_fetch_array ($sql_result))
{
for ($i=0; $i<$numfields; $i++)
{
$field = mysql_field_name($sql_result, $i);
$temp = $row[$i];
if ($field == "player_id") $player_id = $temp;
else if ($field == "player_pos") $player_pos = $temp ;
else if ($field == "player_desc") $player_desc = $temp;
else if ($field == "player_price") $player_price = $temp;
}
}
echo "<TR><TD>$player_id</TD><TD>$player_pos</TD><TD>$player_desc</TD><TD align=right>$player_price</TD></TR>";
Michael