PHP Classes

File: Documentation_and_Demo/easyTables/configs/example5.php

Recommend this page to a friend!
  Classes of enri_pin   Easy Tables   Documentation_and_Demo/easyTables/configs/example5.php   Download  
File: Documentation_and_Demo/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: 10 years 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"
       
);
?>