To be more specific, here is the code I am currently using to view the file:
$handle = fopen("uploads/22.csv", "r");
while (($data = fgetcsv($handle, 5000, ",")) !== FALSE)
{ echo "<pre>"; print_r($data); echo "<pre>"; }
This is the output:
Array
(
[0] => Date
[1] =>...
I am trying to pull information from a csv file on my server and place it into a mysql table. I am able to pull the file using fopen and fgetcsv and get the following to display:
Array
[1] 7/23/2011
[2] 22012
[3] 100005
Array
[1] 7/23/2011
[2] 21022
[3] 100006
In this scenario [2] would be a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.