PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Ruben Crespo   CSV Importer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: CSV Importer
Import data from a CSV file into a MySQL table
Author: By
Last change:
Date: 16 years ago
Size: 259 bytes
 

Contents

Class file image Download
<?php
include ("Conn.Config.php");
include (
"CSVImporterClass.php");

$cnx = conexion ();

//CSVImporter ("Table Name", "CSV File", $TruncateTable ["yes"/"no"], $cnx);

$upload = new CSVImporter ("TableName", "CsvFile.csv", "no", $cnx);
$upload->Upload ();
?>