note 43341 added to function.mysql-fetch-assoc

From: Date: Thu, 17 Jun 2004 21:59:32 +0000
Subject: note 43341 added to function.mysql-fetch-assoc
Groups: php.notes 
Request: Send a blank email to php-notes+get-71269@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-assoc.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43341 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43341&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43341&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71269) next »