Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of dev San  >  Paging  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example To Use The Class
Class: Paging
Generate paging links for listings split in pages
Author: By
Last change:
Date: 10 years ago
Size: 304 bytes
 

Contents

Class file image Download
<?
require_once("dbConnection.php");
require_once(
"paging.php");

$chk=db_Connect();
$sql="select * from xyz";

if(!
$start)
 
$start=10;

$rs=mysql_query($sql);
$pg=new Paging();
$pg->set_Start_Item($start);
$pg->Total_Recs=mysql_num_rows($rs);
$nav=$pg->Create_paging();
echo 
$nav;


?>