Hi all:
Does anyone know of a method of echoing results from within a for-loop to the page LATER in a script rather than at 'point-of-execution'? - (Instead of straight to the page within the loop.)
I have a for-loop that echoes No: pages from a search result to the page, as hyperlinks:
for ($i=1;$i <= $pages; $i++) {
$newoffset = $limit * ($i - 1);
echo = "<a href=\"$PHP_SELF?offset=$newoffset\">$i</a>";
}
The value of the echoed portion changes, as it reflects thwe number of pages in a search to display. 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!
Cheers for any pointers!
Russ.