how to reinitialise an MySQL_fetch_array

From: Date: Sat, 15 Dec 2001 12:32:03 +0000
Subject: how to reinitialise an MySQL_fetch_array
Groups: php.general 
Request: Send a blank email to php-general+get-77816@lists.php.net to get a copy of this message
Hello, I would like to reinitialise an MySQL_fetch_array. That is, once it has gone through I would like to be able to go back to the start again. for eg while ($myrow=MySQL_fetch_array($result2)) { $befid=$myrow["beforeid"]; while($myrow5=MySQL_fetch_array($result5)) { $aftid=$myrow["afteridid"]; if ( $befid == aftid) { do something; } } //while($myrow5=MySQL_fetch_array($result5)) //now that the inner loop has finished I would like to be able to restart the inner loop by reinitailsing the MySQL_fetch_array } //while ($myrow=MySQL_fetch_array($result2)) Regards, Ivan

« previous php.general (#77816) next »