Location: PHPKode > scripts > TNavigator > sample.php
<?php
	require 'TMSSQLDatabase.php';
	require 'TNavigator.php';
	$mis = new  TMSSQLDatabase("ITSRV","quest","asdas0902edsas022","ITS");
	$mis->db_connect();
	$mis->run_query("Select * from EliteUser.INI");
	$i=0;
	$rowsPerPage=15;

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