PHP Classes

File: usage.php

Recommend this page to a friend!
  Classes of Hasin Hayder   PHP MySQL Report Generator   usage.php   Download  
File: usage.php
Role: Example script
Content type: text/plain
Description: How to Use This Class
Class: PHP MySQL Report Generator
Generate HTML report from MySQL query result data
Author: By
Last change:
Date: 19 years ago
Size: 859 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
    <?
   
include_once("phpReportGen.php");
   
$prg = new phpReportGenerator();
       
$prg->width = "100%";
   
$prg->cellpad = "0";
   
$prg->cellspace = "0";
   
$prg->border = "0";
   
$prg->header_color = "#666666";
   
$prg->header_textcolor="#FFFFFF";
   
$prg->body_alignment = "left";
   
$prg->body_color = "#CCCCCC";
   
$prg->body_textcolor = "#800022";
   
$prg->surrounded = '1';

   
mysql_connect("localhost","root","root");
   
mysql_select_db("company");
   
$res = mysql_query("select * from table1");
   
$prg->mysql_resource = $res;
   
   
$prg->title = "Test Table";
   
$prg->generateReport();
   
   
?>
</body>
</html>