note 85629 added to mysqli-result.data-seek

From: Date: Tue, 09 Sep 2008 19:07:54 +0000
Subject: note 85629 added to mysqli-result.data-seek
Groups: php.notes 
Request: Send a blank email to php-notes+get-144271@lists.php.net to get a copy of this message
This is useful function when you try to loop through the resultset numerous times. For example: <?php $result = mysqli_query($connection_id,$query); while ($row = mysqli_fetch_assoc($result)) { // Looping through the resultset. } // Now if you need to loop through it again, you would first call the seek function: mysqli_data_seek($result,0); while ($row = mysqli_fetch_assoc($result)) { // Looping through the resultset again. } ?> ---- Server IP: 209.41.74.194 Probable Submitter: 81.175.154.102 ---- Manual Page -- http://www.php.net/manual/en/mysqli-result.data-seek.php Edit -- https://master.php.net/note/edit/85629 Del: integrated -- https://master.php.net/note/delete/85629/integrated Del: useless -- https://master.php.net/note/delete/85629/useless Del: bad code -- https://master.php.net/note/delete/85629/bad+code Del: spam -- https://master.php.net/note/delete/85629/spam Del: non-english -- https://master.php.net/note/delete/85629/non-english Del: in docs -- https://master.php.net/note/delete/85629/in+docs Del: other reasons-- https://master.php.net/note/delete/85629 Reject -- https://master.php.net/note/reject/85629 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144271) next »