> -----Original Message-----
> From: Brian Dunning [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 17, 2005 10:37 AM
> To: php-general@lists.php.net
> Subject: [PHP] Uploaded CSV -> database
> 
> 
> Does anyone have an example of code to process a CSV file submitted  
> via a file upload and parse it out in order to write its 
> records to a  
> db?
> 


With MYSQL (assuming permissions and such are in order) You would simply:

$sql="load data local infile '/path/to/csv' into table tablename fields
terminated by ','";


JM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to