PHP Classes

File: sales.php

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.   phpreports   sales.php   Download  
File: sales.php
Role: Example script
Content type: text/plain
Description: Sales sample file
Class: phpreports
Report Generator
Author: By
Last change:
Date: 21 years ago
Size: 515 bytes
 

Contents

Class file image Download
<?php
   
// include the PHPReports classes on the PHP path! configure your path here
   
ini_set("include_path",ini_get("include_path").":/var/www/html/phpreports/");
    include
"PHPReportMaker.php";

   
$sSQL = "select * from saleslog order by city,id";
   
$oRpt = new PHPReportMaker();

   
$oRpt->setXML("sales.xml");
   
$oRpt->setUser("taq");
   
$oRpt->setPassword("******");
   
$oRpt->setConnection("localhost");
   
$oRpt->setDatabaseInterface("mysql");
   
$oRpt->setSQL($sSQL);
   
$oRpt->setDatabase("phpreports");
   
$oRpt->run();
?>