Re: counting ..
| From: | Nikunj Virani | Date: | Tue, 25 Mar 2003 06:24:55 +0000 |
| Subject: | Re: counting .. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140918@lists.php.net to get a copy of this message | ||
Check out:
http://phpbuilder.com/columns/rod20000221.php3
Hope that helps!
Regards,
Nikunj Virani
----- Original Message -----
From: "Sebastian" <sebastian@dslr.net>
To: "php list" <php-general@lists.php.net>
Sent: Tuesday, March 25, 2003 11:39 AM
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
>