View Single Post
Old 10-27-2011, 11:12 AM  
nm_
Confirmed User
 
Industry Role:
Join Date: May 2011
Location: San Diego
Posts: 328
your echo is wrong:

Code:
echo "<a href=\"".$_SERVER['PHP_SELF']."/?page={$i}\">{$i}</a>";
produces <a href="page.php/?page=0"></a>

you don't want the / in there

try:

Code:
echo "<a href=\"".$_SERVER['PHP_SELF']."?page={$i}\">{$i}</a>";
should work
nm_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote