how can i read excel sheet to our database
Posted: Fri Jul 14, 2006 1:42 am
how, can i read the data in excel sheet to database,
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$csv_file = "my_csv_file.csv";
$csv_data = array();
$f = fopen($csv_file,"r");
while ($line = fgetcsv($f,1024,",","\""))
{
array_push($csv_data,$line);
}
fclose($f);