copy mysql_query resource result
Posted: Tue Feb 13, 2007 12:53 am
hi
i have a little problem with results of mysql_query
i want to use the result of a mysql_query more than one time
i tried to do this:
it doesn´t work
also tried this:
it doesn´t work
what i did temporaly was execute the query twice, which is not a optimal solution
how can i reuse or manipulate a result from a query
i kwon it´s a resource but i didn´t found much info about it
i´d appreciate any help
i have a little problem with results of mysql_query
i want to use the result of a mysql_query more than one time
i tried to do this:
Code: Select all
$result=mysql_query('SELECT * FROM EMP');
$temporal_result=$result;also tried this:
Code: Select all
$result = $temporal_result = mysql_query('SELECT * FROM EMP');what i did temporaly was execute the query twice, which is not a optimal solution
how can i reuse or manipulate a result from a query
i kwon it´s a resource but i didn´t found much info about it
i´d appreciate any help