Hi all:
I have a for-loop that echoes out a result to the page:
for ($i=1;$i <= $pages; $i++) {
$newoffset = $limit * ($i - 1);
echo = "<a class=\"noLK\" href=\"$PHP_SELF?offset=$newoffset\">$i</a> \n";
}
The value of the echoed portion changes to reflect the number of pages that can be displayed. If there are 2 pages to be displayed then; "1, 2" is echoed as hyperlinks to those pages. But if I pass the result to a var and then echo the var to the page I simply get " 2 " which reflects the number of the pages yes, but not in the " 1, 2 " format which is what I need!
Is there another method, instead of having to echo these kinds of for-loop results straight to the page within the php code itself, to display it 'later-on' so to speak in one's script?
Cheers for any pointers!
Russ.