I've some issues with an array fetched from MySQL
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
mysql_fetch_row($result);
echo $row[0]; // doesn't work
echo $row[1]; // doesn't work
but this work
echo $row["FirstFieldName"] //OK
...
how should I change the following code to make it work?
for ( $i = 0; $i < count( $row ); $i++ )
{
echo $row[ $i ];
}
thanks