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: 17 years ago
Size: 470 bytes


Class file image Download

$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_tbl ("catalogue",array("border"=>"1","cellspacing"=>"0","cellpadding"=>"5","width"=>"500"));

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