Login   Register  
PHP Classes
elePHPant
Icontem

File: eg.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Md. Shahadat Hossain Khan Razon  >  PHP Pagination Using Bootstrap  >  eg.php  >  Download  
File: eg.php
Role: Example script
Content type: text/plain
Description: Simple Example
Class: PHP Pagination Using Bootstrap
Show pagination of MySQL results for Bootstrap
Author: By
Last change:
Date: 5 months 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>';
}