|
Dec
17
2009
|
|
PHP read CSV File and insert to Mysql DB |
Simple code for read CSV File and insert into mysql database per rows.
following this code:
PHP:
-
$filename="data.csv";
-
{
-
$import="INSERT into all_number(Name,Adress,Code) values('$data[0]','$data[1]','$data[2]')";
-
}
-
}
I hope, This is helpfull for all
