PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Ashish Vishwakarma   Generate Paging   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: It includes an example of paging class
Class: Generate Paging
Display MySQL query results split nto pages
Author: By
Last change: Some function changes
Date: 18 years ago
Size: 1,078 bytes


Class file image Download
//create database test and run given sql file db.sql
    //connect your host
//your database name
<title>Test Paging</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
=new Paging("select * from hotel where status='a'");
//set link css
<table border="1">
="select * from hotel where status='a' order by hotel_name limit $offset,$limit";
$row=mysql_fetch_array($rs)) {
    <td class="bodytext">
//get page links