<?php
include("datadisplayer.php");
$datatable = new datadisplayer;
$datatable->set_db ("localhost","user","password","eproshop");
$datatable->set_rs ("SELECT prodID,prodtitle,proddesc FROM products");
$datatable->set_page ($_REQUEST[page],5);
$datatable->set_data();
$datatable->set_tbl ("catalogue",array("border"=>"1","cellspacing"=>"0","cellpadding"=>"5","width"=>"500"));
echo $datatable->get_result();
?>
|