JustinK101 Posted November 19, 2007 Share Posted November 19, 2007 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 More sharing options...
JustinK101 Posted November 19, 2007 Author Share Posted November 19, 2007 I just read a little more, I need to make a copy of a resource, which in my case is $result. Link to comment https://forums.phpfreaks.com/topic/77981-copy-a-mysql-result-object/#findComment-394701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.