PHP Classes

File: eg.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 1 year ago
Size: 460 bytes


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()){
    foreach($schldata as $schl){
        echo '<div>'.$schl['school_title'].'</div>';
    # pagination here
    echo '<p>'.$schools.'</p>';