Jump to content
xisto Community
alex1985

Pagination ?

Recommended Posts

People they create the databases in which like the news stories are placed. Then that news stories, they are placed on certain page to be displayed and readable by other users on the web-site. How people do that thing paging, like you can see bottom, whenever, you go to Any CMS engines. Need the concept how you can create, 1, 2 or 3 pages, then next and back buttons, last and beginning page.

Share this post


Link to post
Share on other sites

Well this question has been brought up plenty of times in the forums. A simple search could have helped you, but here is a quick query to do this for you:

$resultsperpage=10;$result=mysql_query("SELECT * FROM content LIMIT ".$_GET['page'].",".$resultsperpage);

Edited by alex7h3pr0gr4m3r (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.