when it comes to the second page, you already know that page you are on 1,2,3,4...
take that and multiply it by the defined number of results per-page, then start your counting. Jim ----- Original Message ----- From: "Sebastian" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 10:09 PM Subject: [PHP] counting .. > Hello all. > > rather dumb question. > > I have a pagination system, 25 results per page, which are user comments, I > want to put a number on each comment so i am doing something like: > > $num=$num + 1; > $number = $num; > echo $number; > > But when i switch to the next 25 results it starts counting from 1 again, > LoL. > > So i have to use $_GET right? If so can someone give me an example. > > Thanks in advanced. > > > cheers, > - Sebastian > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php