Jump to content

Copy A MySQL Result Object


JustinK101

Recommended Posts

I require two copies of a mysql result object. I am simply doing:

 

$result = mysql_query($sql) or die(mysql_error());
$temp_result = $result;

 

But when I call:

 

while($row_temp = mysql_fetch_object($temp_result))

 

It seems to unset the $result object as well.

Link to comment
https://forums.phpfreaks.com/topic/77981-copy-a-mysql-result-object/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.