Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Valerio Giuffrida  >  csv2sql  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: How to use csv2sql class
Class: csv2sql
Convert CSV files into SQL INSERT statements
Author: By
Last change:
Date: 2006-02-12 14:32
Size: 197 bytes
 

Contents

Class file image Download
<?php
require ("csv2sql.class.php");

$csv = new csv2sql("test.csv",";","test","test.sql");
$csv->Export();
$my_array=$csv->Export(false);

foreach (
$my_array as $sql) echo $sql."<br/>";
?>