Posted by Toby Inkster on 03/25/06 03:25
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
[Back to original message]
|