How to read a csv file and put it into a database for each day in php?
-
-
Answer:
Really bad question. Do you mean everyday read a file from csv and insert contents into database? Or, read a csv file containing info for each day of the week, inserting the contents into the database? here is a simple php script that will show you the contents of your csv file, line by line, you'll have to take it from there. $file="csv_file.csv"; $fp=fopen($file,"r"); while($data=fgetcsv($fp,4096,",","'"))… print_r($data); } fclose($fp);
Hunterq Dahl at Yahoo! Answers Visit the source
Related Q & A:
- How to read a file?Best solution by Stack Overflow
- Рow to find the ordinal variables in a .csv file in python?Best solution by stackoverflow.com
- How to read a PDF file with PHP?Best solution by Stack Overflow
- How to convert a HTML file to XML file?Best solution by Stack Overflow
- How can i export my contacts to a csv file?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.