I want to use a query result multiple times.
$result=mysql_query("Select field from tables;");
while($result_details = mysql_fetch_array($result))
{ echo $result_details[0]; //Returns 10 Rows..
}
but if I use mysql_fetch_array($result) again its not returning rows.. I don't want to execute the same query multiple times Please let me know how to use the results of a query multiple times.