PHP Classes
elePHPant
Icontem

File: simple

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of khalil Majdalawi  >  Excel Reader  >  simple  >  Download  
File: simple
Role: Example script
Content type: text/plain
Description: Example
Class: Excel Reader
Access Excel spreadsheets as databases using ODBC
Author: By
Last change: xc
Date: 7 years ago
Size: 419 bytes
 

Contents

Class file image Download
<?php
require_once("odbcmanager.php");
//name of system DSN in ODBC

$odbc_name="employees_list";

 
$odbc_conn=new OdbcManager();
 
$odbc_conn->connect($odbc_name);
 
//import all data to array
 
$odbc_data=$odbc_conn->return_import_values();
 
//name of columns
 
$odbc_data_column=$odbc_conn->columntable();
 
$odbc_conn->close();
 
 
print_r($odbc_data);
 
//now you have array for all data
 
?>