Blog Archives

Import excel or csv fields into mysql database in php


Import excel or csv fields into mysql database in php. <?php //connect to the database $connect = mysql_connect(“localhost”,”pramodh”,””); mysql_select_db(“pramodh”,$connect); //select the table // if ($_FILES[csv][size] > 0) { //get the csv file $file = $_FILES[csv][tmp_name]; $handle = fopen($file,”r”); //loop through

Tagged with: , , , , , , , , , ,
Posted in Import excel or csv fields into mysql database in php, php
Follow php tutorial on WordPress.com
categories
Calendar
March 2017
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
2728293031  
Follow me on Twitter
Blog Stats
  • 72,827 hits