View Single Post
Old 10-23-2021, 09:37 AM  
Drachen
Registered User
 
Drachen's Avatar
 
Industry Role:
Join Date: Nov 2011
Location: Poland
Posts: 9
This loop looks ok. The section one above looks strange.

Shouldn't it be something like:

Code:
echo "Pages: ";
echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=1'>&lt;&lt; </a> ";
// previous page num
$prevpage = $currentpage - 1;
// show < go back to 1 page
echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=$prevpage'>&lt; </a> ";
} // end if
__________________
Your contact in Poland.
Drachen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote