are there any way to duplicate the resources produced by functions such as mysql_query?
it may sound dumb but i wanted to reuse such resources so that i won't retype the mysql_query() again and again just to use have a resource..like for example
$rsrc = mysql_query('SELECT * FROM `table` LIMIT 0,1');
$rows = mysql_fetch_array($rsrc);
print_r($rows);
when you fetch a resource, it's value will disappear (that's what i think) what i wanted to do is to reUse it again.i even tried..
$rsrc = mysql_query('SELECT * FROM `table` LIMIT 0,1');
$rsrc_copy = $rsrc;