Re: Import from csv file to MySQL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Import from csv file to MySQL

From: Smitro <gnews@mailoz.com>
Date: Wed Sep 21 2005 - 05:52:13 CEST

I think I've worked it out, I'm in the middle of writing the script.

I upload the file into $_FILES

grab the temp directory and temp file name etc from $_FILES

then run the mysql_query () something along the lines of "LOAD DATA
INFILE '$file_location' INTO TABLE tale_name etc...

I guess it's one of these things, if you look hard enough you'll find
an answer.

Thanks anyway.
Received on Mon Oct 24 02:10:08 2005