title: Import CSV, exclude first row
body: <p>I'm importing my csv fine now except one thing, how do i get the import to ignore the data in the first row? Employees will be uploading the same format which has the column names in that first row.</p>
  
  <pre><code>if (isset($_POST['submit'])) {
      if (is_uploaded_file($_FILES['filename']['tmp_name'])) {
          echo "&lt;h1&gt;" . "File " . $_FILES['filename']['name'] . " uploaded successfully." . "&lt;/h1&gt;";
          echo "&lt;h2&gt;Displaying contents:&lt;/h2&gt;";
          readfile($_FILES['filename']['tmp_name']);
      }
  
      //Import uploaded file to Database
      $handle = fopen($_FILES['filename']['tmp_name'], "r");
  
      while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
          $import = "INSERT into tictoc(employee,taskname,tasktime,sessiontime,sessionstart,sessionend,sessionnotes) values('" . $userinfo['first_name'] . " " . $userinfo['last_name'] . "','$data[0]','$data[1]','$data[2]','$data[3]','$data[4]','$data[5]')";
  
          mysql_query($import) or die(mysql_error());
      }
  
      fclose($handle);
  
      print "Import done";
  }
  </code></pre>