PHP Classes
elePHPant
Icontem

File: Demo_Simple/easyTables/configs/example5.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of enri_pin  >  Easy Tables  >  Demo_Simple/easyTables/configs/example5.php  >  Download  
File: Demo_Simple/easyTables/configs/example5.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Easy Tables
Show, edit and export database table records
Author: By
Last change:
Date: 1 year ago
Size: 691 bytes
 

Contents

Class file image Download
<?php
   
/*$db='mysql';
    $host='localhost';
    $dbname='test';
    $user="root";
    $pass="qoskA45";
    $query='select concat(concat(a.firs_name, " "), a.last_name) as "Author Name", b.title as "Book Name", b.language as "Lang", b.audience as "Audience" from authors a, books b where a.id_book = b.id';
    */
   
   
$db="sqlite";
   
$dbname="../../Examples/Dabatase.s3db";
   
$query='select a.firs_name || " " || a.last_name as "Author Name", b.title as "Book Name", b.language as "Lang", b.audience as "Audience" from authors a, books b where a.id_book = b.id';
   
   
$fileName="Document Name";
   
$csvChar=";";
   
$colAlign=array(
           
"Lang"=>"center",
           
"Audience"=>"center"
       
);
?>