* Thus wrote Vern:
> I'm setting up an array based on recordset that does a loop as follows:
> 
> do {
> //SET ARRAYS
>         $z['username'][$k] = $row_rsUSERIDID['uname'];
>         $z['distance'][$k++] = $totaldist;
> } while ($row_rsUSERIDID = mysql_fetch_assoc($rsUSERIDID));
> 
>...
> 
> How can I now get this output displyed in groups of 10 so that I can display
> them 10 at a time on a page then click a next button to dispaly they next 10
> and so forth?

Well, this is the hard way to do things, and very inefficient but:

 foreach(array_slice($z['distance'], $start, 10) {
   //...
 }


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to