note 43341 deleted from function.mysql-fetch-assoc by tomsommer

From: Date: Mon, 05 Jul 2004 19:15:04 +0000
Subject: note 43341 deleted from function.mysql-fetch-assoc by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72626@lists.php.net to get a copy of this message
Note Submitter: asad@andrews.edu ---- to actually have total control over the result set that's displayed, i.e., show 5 result sets from the total 15 and then start the next page with the 6th one, use the following code; $counter = 0; $record = array(array()); while ($row = mysql_fetch_array($result)) { for ($i=0; $i < $fields; $i++) { $record[$counter][$i]=$row[$i]; } $counter = $counter+1; } all you have to do now is use the right parameters on every page.

« previous php.notes (#72626) next »