Sponsored By
DataConverter
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> Other Programming >> PHP >> How to import csv file in php?
Author Post

Pravesh Singh


Total Post: 46
Member Since: 12/12/2011
Points: 238
How to import csv file in php?
Posted On: 3/12/2012 2:11:54 AM
Hello Guys,
I want to import csv file in php but I don't have and idea because I'm naive user for php. So please help me and paste your code snippets too.

 
Author Post

Arun Singh


Total Post: 49
Member Since: 7/1/2011
Points: 338
Re: How to import csv file in php?
Posted On: 3/12/2012 8:36:45 AM
Hi Pravesh,
To import csv file data, you can use array to store data of file line by line. Check this code snippets...
<?php
 $arrResult = array();
$arrLines = file('MyCSVFile.csv');
foreach($arrLines as $line) {
$arrResult[] = explode( ',', $line);
}
?>

It might be helpful for you.
Author Post

Vaidotas Dazzas


Total Post: 1
Member Since: 6/14/2012
Points: 7
Re: How to import csv file in php?
Posted On: 6/14/2012 5:41:59 AM


Using this CSV Import script You can import data into MYSQL then echo in php.
Report Abuse Form
Reason:    
 
Total Online Users: 2709
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2009 - 2013MindStick. All Rights Reserved.