Below are two methods commonly used in most php codes for fetch mysql data .
mysql_fetch_array()
mysql_fetch_assoc()
This Is the result of mysql_fetch_array()
$row['fieldname'] = 'some value';
or
$row[0] = some value';
This Is the result of mysql_fetch_assoc() will only return