is there a shorthand for this
if ($page != 1|2|3|4|5|6|7|8|9|10) $page=1;
i tried
if ($page != 1-10) $page=1;
but that did not work
How about
<? if (($page >= 1) && ($page <= 10)) { $page = "1"; } ?>
Not sure what you're trying to do with this, but that would cover the range of 1-10.
Cgraz
if (!(int)(($page - 1)/10)) $page = 1;