Announcement

Collapse
No announcement yet.

resetting mysql_fetch_array()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • irc
    replied
    Thanks!

    Leave a comment:


  • Cyborg from DH
    replied
    PHP Code:
    mysql_data_seek($result0); 

    Leave a comment:


  • irc
    started a topic resetting mysql_fetch_array()

    resetting mysql_fetch_array()

    I have a query that I want to step through several times using the mysql_fetch_array() function. Is there a way that I can reset the result of a query so that I can step through it again?

    Example:

    $result -> is the result from from a mysql query.

    PHP Code:
    while( $row_array mysql_fetch_array$result ) )
     {
         
    // Do something with each row.
     

    Then reset the $result to the beginning and do another while loop on it?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X