File: sample.php

Recommend this page to a friend!
  Classes of Kostas Aitsidis  >  TNavigator  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample TNavigator
Class: TNavigator
Query result page navigator
Author: By
Last change:
Date: 17 years ago
Size: 719 bytes


Class file image Download
require 'TMSSQLDatabase.php';
$mis = new TMSSQLDatabase("ITSRV","quest","asdas0902edsas022","ITS");
$mis->run_query("Select * from EliteUser.INI");

    if (
$mis->RecordCount== 0) {
"Table is Empty ";
    elseif (
$mis->RecordCount> 0) {
$fPage = 0;
$pages = ($mis->RecordCount/$rowsPerPage);
$nav= new TNavigator( $pages,$rowsPerPage,'/its/itm/itms.php');
# Fields to view
$catalogFields = array (ABBREVIATION =>"Item Code", NAME =>"Item Description");
$mis->ViewPage("Item Catalog",$catalogFields,$_GET['page'],$rowsPerPage);

For more information send a message to info at phpclasses dot org.