I have a doubt. Why can't we store the elements of mysql_fetch_row in an array and then use it later in the code?
For example, this bunch of code gives unexpected waiting time error.
$result=mysql_query($query) or die(mysql_error());
$n=mysql_num_rows($result);
$a=array();
$a[$i]=array();
for ($i=o; $i<$n; $i++)
{
$r=mysql_fetch_row($result);
$a[$i][0]=$r[0];
$a[$i][1]=$r[1];
}
echo $a[0][1];
echo $a[0][0];