How Create a Pagination in PHP coding?

Author Topic: How Create a Pagination in PHP coding?  (Read 1957 times)

Offline qx_1789Topic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 74
  • Karma: 0
  • Working in QualityPoint Technologies
    • https://www.youtube.com/user/qualitypointtech/
How Create a Pagination in PHP coding?
« on: 03-22-2016, 01:40:29 »
How Create a Pagination in PHP coding?


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 52
  • Posts: 868
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: How Create a Pagination in PHP coding?
« Reply #1 on: 04-19-2016, 00:02:16 »
Hello!
I found a great article for you http://www.onlinetuting.com/pagination-in-php-mysqli/
You can read about all steps how create a pagination in PHP.
Your ideas, our writings - Writology.com

Offline Rashikasaxena

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 27
  • Karma: 0
Re: How Create a Pagination in PHP coding?
« Reply #2 on: 04-20-2016, 04:13:34 »
Its always possible that your SQL select statement query may result into thousand of record. But its not good idea to display all the results on one page.

Offline denisebr

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 2
  • Karma: 0
  • I am a web and an app developer.
    • Guru Technolabs
Re: How Create a Pagination in PHP coding?
« Reply #3 on: 04-06-2018, 08:33:09 »
Below is the code for Pagination with PHP
$perpage = 5;

if(isset($_GET["page"])){
$page = intval($_GET["page"]);
}
else {
$page = 1;
}
$calc = $perpage * $page;
$start = $calc - $perpage;
$result = mysqli_query($conn, "select * from post Limit $start, $perpage");

$rows = mysqli_num_rows($result);

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1138 Views
Last post 09-30-2011, 03:32:51
by broderick710
2 Replies
7331 Views
Last post 09-12-2017, 06:22:28
by checkifsccode
16 Replies
8321 Views
Last post 03-17-2017, 05:07:12
by JPinto
19 Replies
7770 Views
Last post 06-06-2016, 19:59:07
by zekita
16 Replies
8870 Views
Last post 05-13-2016, 04:21:16
by MaryGreen