[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 =

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) ? $file = file(sompath/somefile.csv); for($a=1;$acount($file);$a++) { $d = csv_parse($file[$a],,); $first_name = make_safe($d[0]); $last_name = make_safe($d[1]);

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

2003-03-09 Thread Bob Irwin
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 number of lines ... and cut up each line in its veriables then entering it into the databace. I have