PHP Classes

File: exemplo.php

Recommend this page to a friend!
  Classes of Izaias Moura   SQL to Excel   exemplo.php   Download  
File: exemplo.php
Role: Example script
Content type: text/plain
Description: Example
Class: SQL to Excel
Export database table records in Excel XLS format
Author: By
Last change:
Date: 20 years ago
Size: 505 bytes
 

Contents

Class file image Download
<?
# Brasil ***************************************

//params of the your dataBase server
// parametros do seu servidor
require("db_config.inc");

// classe (class)
require("mid_excel.class");

//Estanciar
$mid_excel = new MID_SQLPARAExel;

// data to the file(Dados para o arquivo)
$sql = "select * from alunos";

//ex.:
//$mid_excel->mid_sqlparaexcel("DataBaseName", "TABLEname", RECORDSET, "FILEname");
$mid_excel->mid_sqlparaexcel("ESCOLA", "alunos", $sql, "seusDadosNoExcel");

?>