Re: [PHP] fopen and file dump to a databace...

2003-03-09 Thread Bob Irwin
t; To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 1:02 PM Subject: [PHP] fopen and file dump to a databace... > HI, I'm looking to take the data from a CSV file, then upload it into a > mysql databace. > > I figure i will need the following. > > To count the n

Re: [PHP] fopen and file dump to a databace...

2003-03-09 Thread Jimmy Brake
hi mark! i import data all the dang time and this is what i use (more or less) Insert($query); // i use a class for my mysql connections } function csv_parse($data, $separator) { $quote = '"'; $values = array(); $toggle = 0; $len = strlen($data); $count =

[PHP] fopen and file dump to a databace...

2003-03-09 Thread Mark Tehara
HI, I'm looking to take the data from a CSV file, then upload it into a mysql databace. I figure i will need the following. To count the number of lines ... and cut up each line in its veriables then entering it into the databace. I have: $file = fopen("pricelist-snippet.csv","r"); $buffer = fr