webent Posted April 26, 2008 Share Posted April 26, 2008 Hi, I was wondering if someone could help me figure out how to skip the first line in my csv import... $handle = fopen($_POST['file_name'], "r"); while (($fields = fgetcsv($handle, 0, ",")) !== FALSE) { Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted April 26, 2008 Share Posted April 26, 2008 $count = 0; while (($fields = fgetcsv($handle, 0, ",")) !== FALSE) { $count++; if ($count == 1) { continue; } Quote Link to comment Share on other sites More sharing options...
webent Posted April 26, 2008 Author Share Posted April 26, 2008 LOL... wow, that was simple... I have so many other counters set up in this script, I can't believe that it didn't slap me in the head with a hammer... Thank you BlueskyIS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.