RE: [PHP] Simple: Whats wrong with this?
| From: | Adam Voigt | Date: | Wed, 17 Mar 2004 17:05:50 +0000 |
| Subject: | RE: [PHP] Simple: Whats wrong with this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180697@lists.php.net to get a copy of this message | ||
Well I accidentally deleted your original email, but I didn't see where
you were getting the counter variable from. Where is the variable being
stored? You do know that setting $counter++ for one visitor, doesn't
translate the value of $counter to another, right?
On Wed, 2004-03-17 at 12:05, Shane McBride wrote:
> It doesn't seem to work either way for me.
>
> Shane
>
> -----Original Message-----
> From: Jake McHenry [mailto:linux@nittanytravel.com]
> Sent: Wednesday, March 17, 2004 12:01 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Simple: Whats wrong with this?
>
>
> > No.
> >
> > $correct++;
> >
> > Is all you need for the second condition, it automatically sets itself
> > back.
> >
>
>
> Does this always work? In my timesheet app, I have to do $counter = $counter
> + 1, because for some reason the $counter++; doesn't work. It just doesn't
> work, no incrementation of the variable. Is there something in php.ini that
> can prohibit this from working?
>
> Thanks,
> Jake
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt
adam@kotisprop.com