Re: [PHP-DB] insert into mysql-db from csv-file

2005-01-18 Thread Ruprecht Helms
Hi John, I want to read a csv-file and import the datas into a mysql-db. How do I make this. A little scriptexaple in php would be helpfull. Why not just LOAD DATA INFILE from MySQL? No need to involve PHP at all, really... I think the command you also can write in the mysql_db_query-Command. T

Re: [PHP-DB] insert into mysql-db from csv-file

2005-01-17 Thread John Holmes
Ruprecht Helms wrote: I want to read a csv-file and import the datas into a mysql-db. How do I make this. A little scriptexaple in php would be helpfull. Why not just LOAD DATA INFILE from MySQL? No need to involve PHP at all, really... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/regis

RE: [PHP-DB] insert into mysql-db from csv-file

2005-01-17 Thread Bastien Koert
rtfm http://ca3.php.net/manual/en/function.fgetcsv.php bastien From: Ruprecht Helms <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] insert into mysql-db from csv-file Date: Mon, 17 Jan 2005 17:26:56 +0100 Hi, I want to read a csv-file and import the datas into a mysql-db. How do I ma