Login   Register  
PHP Classes
elePHPant
Icontem

Works as described, minor edits, 5/5 Stars !! If you're havi...

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Quick CSV import  >  All threads  >  Works as described, minor edits, 5/5 Stars !! If you're havi...  >  (Un) Subscribe thread alerts  
Subject:Works as described, minor edits, 5/5 Stars !! If you're havi...
Summary:Package rating comment
Messages:2
Author:Justin
Date:2011-07-26 09:01:01
Update:2011-09-02 05:27:18
 

Justin rated this package as follows:

Utility: Good
Consistency: Good
Examples: Good

  1. Works as described, minor edits, 5/5 Stars !! If you're havi...   Reply  
Picture of Justin
Justin
2011-07-26 09:01:01
Works as described, minor edits, 5/5 Stars !!

If you're having a MySQL connection denied, modify the CLASS with:
$sql = "LOAD DATA LOCAL INFILE '".@mysql_escape_string($this->file_name).

If you want to name the created TABLE, edit the importer php,
ADD:
$databasetable = "my_table";
//connect to database

AND ADD:
$csv->file_name = $HTTP_POST_FILES['file_source']['tmp_name'];
$csv->table_name = $databasetable;

  2. Re: Works as described, minor edits, 5/5 Stars !! If you're hav   Reply  
Picture of Brad Davis
Brad Davis
2011-09-02 05:27:18 - In reply to message 1 from Justin
THANK YOU! Needed this step to make the script work!