Help in navigation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help in navigation

    PHP Code:
    if(1<$pgs)  
     {  
      echo
    "<div class=\"pagin\">";     
     if(
    $pg>3){echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=1\">«</a></span>";}
    {
      if(
    $pg>1){$pp1=$pg-1;echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;$pp1&amp;cid=$cat[0]\"><</a></span>";}
    }
          if(
    $pg>=3){$pp2=$pg-2;echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=$pp2&amp;cid=$cat[0]\">$pp2</a></span>";}
          if(
    $pg>=2){$pp3=$pg-1;echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=$pp3&amp;cid=$cat[0]\">$pp3</a></span>";}
          echo
    "<span class=\"current\">$pg</span>";
          if(
    $pg<=$pgs&&$pg<=$pgs-1){$np1=$pg+1;echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=$np1&amp;cid=$cat[0]\">$np1</a></span>";}
          if(
    $pg<=$pgs-2){$np2=$pg+2;echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=$np2&amp;cid=$cat[0]\">$np2</a></span>";}
          if(
    $pg<=$pgs-1){$np3=$pg+1;echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=$np3&amp;cid=$cat[0]\">></a></span>";}
          if(
    $pg<=$pgs-3){echo"<span class=\"pages\"><a href=\"view.php?action=vsites&amp;pg=$pgs&amp;cid=$cat[0]\">»</a></span>";}
          echo
    "</div>";
       } 
    here is
    $cats=MySQL_Query("SELECT * FROM cats;");
    while($cat=MySQL_Fetch_Array($cats))
    but not getting where to put. I tried but not getting exact result

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    #2
    I want to fix mobtop toplist errors. Plz help masters

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    Comment

    Working...
    X