PHP Classes

File: eg.php

Recommend this page to a friend!
  Classes of Md. Shahadat Hossain Khan Razon   PHP Pagination Bootstrap   eg.php   Download  
File: eg.php
Role: Example script
Content type: text/plain
Description: Simple Example
Class: PHP Pagination Bootstrap
Show pagination of MySQL results for Bootstrap
Author: By
Last change:
Date: 10 years ago
Size: 460 bytes
 

Contents

Class file image Download
$schools=$db->getRowsWithPaging(TBL_UNI_SCHOOLS.' as s, '.TBL_COMMON_SCHOOLS.' as cs', $_REQUEST['_pno'], $_SERVER['PHP_SELF'].'?uid='.$university['uni_id'], 's.uni_id='.$university['uni_id'].' and s.common_school_id=cs.common_school_id');
if(isset($schools) && $schools->isAnyDataAvailable()){
    $schldata=$schools->get();
    foreach($schldata as $schl){
        echo '<div>'.$schl['school_title'].'</div>';
    }
    # pagination here
    echo '<p>'.$schools.'</p>';
}