Posted by Chris H on 03/25/06 07:22
thanks that worked
"Toby Inkster" <usenet200603@tobyinkster.co.uk> wrote in message
news:tpief3-v8b.ln1@ophelia.g5n.co.uk...
> Chris H wrote:
>
>> $pageprev = $page--;
>
> This doesn't do what you think it does. What you have written is shorthand
> for:
>
> $pageprev = $page;
> $page = $page - 1;
>
> What you want is:
>
> $pageprev = $page - 1;
>
> Ditto with your use of ++.
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact
>
Navigation:
[Reply to this message]
|