PHP Classes

File: verysimple.php

Recommend this page to a friend!
  Classes of Huda M Elmatsani   Data Displayer   verysimple.php   Download  
File: verysimple.php
Role: Example script
Content type: text/plain
Description: very simple example
Class: Data Displayer
Display MySQL query result data in various formats
Author: By
Last change:
Date: 20 years ago
Size: 470 bytes
 

Contents

Class file image Download
<?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();
?>