Forum Moderators: coopster

Message Too Old, No Replies

How do you reset a mysql fetch assoc

         

HeadBut

5:52 pm on Sep 18, 2005 (gmt 0)

10+ Year Member



I'd like to do this list twice and I get noting the second time, I'm assuming I must reset the fetch?
<?php do {?>
<option value="<?php echo $row_RestDisplay['RID'];?>"><?php echo $row_RestDisplay['RestName'];?></option>

<?php } while ($row_RestDisplay = mysql_fetch_assoc($RestDisplay));

If there is a function to reset the row to # 1 I can't find it in the Manual at php

Thanks
Matt

coopster

3:02 pm on Sep 19, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The function you are looking for is mysql_data_seek() [php.net].