News
In my previous post I have explained about How to Export MySQL table data to CSV File using PHP. Now in this tutorial I am going to explain how to import CSV data file into mysql. Suppose that we have ...
We will use LOAD DATA INFILE statement to import CSV file into MySQL table. Step 1: Create a database table to which we need to import the data from file. CREATE TABLE products ( id INT NOT NULL ...
<?php //Database connection $db = mysql_connect("localhost", "root", "123456"); if(!$db){ echo 'Mysql Connection Error'; } if(!mysql_select_db("import",$db)){ echo ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results