im using this code php code to upload the rows

PHP Code:
    <?php
    
include "connect.php";
    
    if(isset(
$_POST['submit']))

   {

     
$filename=$_POST['filename'];

     
$handle fopen("$filename""r");
     

     while ((
$data fgetcsv($handle1000",")) !== FALSE)

     {

        
$user_address mysql_real_escape_string($data[1]);

       
$import="INSERT into Persons(Firstname,Lastname,Age,Lots) values('$data[0]','$data[1]','$data[2]','$data[3]')";

       
mysql_query($import) or die(mysql_error());

     }

     
fclose($handle);

     print 
"Import done";

 

   }
but the thing is the csv files have their row headers and was made in excel

but this code upload all rows

please i really need help.