PHP Classes

File: test/select.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   wepesi PHP Pagination Library   test/select.php   Download  
File: test/select.php
Role: Example script
Content type: text/plain
Description: Example script
Class: wepesi PHP Pagination Library
Generate pagination for listing of query results
Author: By
Last change:
Date: 6 months ago
Size: 429 bytes
 

Contents

Class file image Download
<?php
$pages
=isset($_GET['pages'])?(is_numeric($_GET['pages'])?$_GET['pages']:1):1;
$response=$message->getMessage($pages);
$totalPages=(int)$response["totalPages"];
$activepages=(int)$response["activepages"];
$result=$response["result"];
$link="";
echo
"<br>";
for(
$i=1;$i<=$totalPages;$i++){
   
$link.="<a href=\"./?pages=$i\" style=\"padding:15px;margin:10px;background:#e3e3e3;\">$i</a>";
}
echo
$link;
var_dump($result);
?>