PDA

View Full Version : restart fetching array


john_zakaria
08-12-2009, 07:05 AM
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??

abduraooft
08-12-2009, 09:12 AM
mysql_data_seek() (http://php.net/manual/en/function.mysql-data-seek.php)

Fumigator
08-12-2009, 03:50 PM
You will use fewer resources (which means your script will run faster) if you assign your resultset to an array the first time you fetch through it, then work with that array as needed later on.