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


Reply via email to