Seo Forum

Coding & Programming => PHP Forum => Topic started by: qx_1789 on 03-22-2016, 01:40:29

Title: How Create a Pagination in PHP coding?
Post by: qx_1789 on 03-22-2016, 01:40:29
How Create a Pagination in PHP coding?
Title: Re: How Create a Pagination in PHP coding?
Post by: TomClarke 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.
Title: Re: How Create a Pagination in PHP coding?
Post by: Rashikasaxena 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.
Title: Re: How Create a Pagination in PHP coding?
Post by: denisebr 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);