User Profile

Collapse

Profile Sidebar

Collapse
jrrdnx
jrrdnx
Last Activity: Mar 19 '08, 08:19 PM
Joined: Mar 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jrrdnx
    replied to fgetcsv() doesn't get last row in file
    in PHP
    Thanks for the tip... that got me into looking at the code that inserted the data in the database. It turns out I hadn't accounted for single quotes in some of the fields that was breaking up my arguments. I actually had about 10 rows not being entered into the database.
    See more | Go to post

    Leave a comment:


  • jrrdnx
    started a topic fgetcsv() doesn't get last row in file
    in PHP

    fgetcsv() doesn't get last row in file

    I have a form set up to allow someone to upload a .csv and populate its data into a database using the fgetcsv() function. All of the code works fine because everything in the .csv file is populated into the database just fine, except for the very last row of data. I have tried several different ways of using the fgetcsv(), including:
    [php]
    while ($result = fgetcsv($handle )) {

    while (($result = fgetcsv($handle )) !=...
    See more | Go to post
    Last edited by ronverdonk; Mar 19 '08, 07:16 PM. Reason: code tags
No activity results to display
Show More
Working...