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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.