|
|
|
|
![]() ![]() |
Mar 24 2008, 07:57 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 397 Joined: 9-February 08 Member No.: 57,615 |
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.
|
|
|
|
Mar 24 2008, 08:17 AM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 31-August 06 From: Singapore Member No.: 29,189 |
Basically, it is using the concept of displaying a certain number of records from your database.
This article should help you: http://www.php-mysql-tutorial.com/php-mysql-paging.php |
|
|
|
Mar 24 2008, 04:57 PM
Post
#3
|
|
|
Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,074 Joined: 25-September 05 From: Los Angeles, California Member No.: 12,251 |
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:
CODE $resultsperpage=10;
$result=mysql_query("SELECT * FROM content LIMIT ".$_GET['page'].",".$resultsperpage); This post has been edited by alex7h3pr0gr4m3r: Mar 24 2008, 04:57 PM |
|
|
|
Mar 25 2008, 03:12 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 397 Joined: 9-February 08 Member No.: 57,615 |
Thanks. That should work, the code looks good. You, two guys, are the one who is good in it, because you always post replies when they are needed.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 11:55 PM |