Source for file example3_db.php
Documentation is available at example3_db.php
* Example using built in MYSQL DB functions
* @package ExcelWriterXML
include('ExcelWriterXML.php');
$xml->showErrorSheet(true);
/***************** ADD multiple tables all at once ***********/
$xml->mysqlTableDump('surveys.web.alcatel-lucent.com','ghdweb','ghdweb','ghdweb_survey',$tables);
/***************** ADD one table at a time ***********/
$xml->mysqlTableDump('surveys.web.alcatel-lucent.com','ghdweb','ghdweb','ghdweb_survey','test','test2');
$xml->mysqlTableDump('surveys.web.alcatel-lucent.com','ghdweb','ghdweb','ghdweb_survey','desks','desk2');
/***************** ADD a sheet, execute a query against that sheet ***********/
$qSheet = $xml->addSheet('My Query');
datetime as "Date and Time"
$qSheet->mysqlQueryToTable('surveys.web.alcatel-lucent.com','ghdweb','ghdweb',$query);
|