On Mon, Jul 27, 2009 at 10:30 AM, Miller, Terion<tmil...@springfi.gannett.com> wrote: > I want to store only 1000 records at a time in the session variable thought I > could use a range(1,1000.... > > How would you do this, store the first 1000 , then the second on refresh etc > > My snippet so far > > ----------------------- > // Process all results into > $_SESSION array > $position = 1; > while ($row = mysql_fetch_array($result)) > { > $_SESSION['fullRestaurantList'][$position] = $row; > $position++; > foreach(range('1','1000') as $c){ > ($position == $c) > > $_SESSION['totalNumberOfRestaurants'] = $c; > } > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Teri, Do you really need that data to persist? This will not scale effectively. -- Bastien Cat, the other other white meat