Jump to content

List the pages


chanchelkumar

Did you get a useful reply from this forum???  

1 member has voted

  1. 1. Did you get a useful reply from this forum???

    • Never
      0
    • No
      0
    • Sometimes someone visit my questain
      0
    • No one is here for me!
      0
    • These all are stunds!!!
      1


Recommended Posts

Well its quite easy though..

But for what do you want it, ex: userlist, files ....

 

Ill post my code here for you think you can just edit it then:

$cnt        = mysql_query("SELECT id FROM people");
$membs      = mysql_num_rows($cnt);
$pages      = (int)($membs / 100) + 1;

if ($membs % 100 == 0)
{
$pages--;
}

print "Pages:";

for ($i = 1; $i <= $pages; $i++)
{
$stl = ($i - 1) * 100;
print "<a href='index.php?st=$stl'>$i</a> >";
}

Link to comment
https://forums.phpfreaks.com/topic/43935-list-the-pages/#findComment-213338
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.