I will try to make you understand following points.
mysql_fetch_row: Returns row as an enumerated array
mysql_fetch_object: Returns row as an object
mysql_fetch_array: Returns row as an associative array
This is the table details
------------------------------------------------------
ID Name City
---------------------------------------------
1 belal Chatar
2 Sharma Ranchi
3 chand Bachra
------------------------------------------------------
$res select * from details ;
$row mysql_fetch_row($res) // this return enumerated array having value
row{
1
belal
chatra
}
so we can print $row[0] $row[1] $row[2];
in case of mysql_fetch_array() . It return accociative array.
like.
row['id'] 1
row['name'] belal ;
row['city'] Chatar ;
Bela Ansari