SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    restart fetching array

    now i'm using the function mysql_fetch_array to start fetching all that i need is to fetch the array again in the same page.. and i dont want to repeat the function mysql_fetch_array ..
    i mean that it exists a fuction to repeat the fecthing from the begining again..but i dont know it..
    can anyone help me??

  2. #2
    Non-Member thewebhostingdir's Avatar
    Join Date
    Oct 2005
    Posts
    703
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want again to use the first records, then you need to use these functions, mysql_data_seek and mysql_fetch_assoc

  3. #3
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,495
    Mentioned
    161 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by thewebhostingdir View Post
    If you want again to use the first records, then you need to use these functions, mysql_data_seek and mysql_fetch_assoc
    The function the OP is looking for is mysql_data_seek. No need to use mysql_fetch_assoc instead of mysql_fetch_array though


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •