so I am uploading a CSV file to my mysql database and I want it to always skip the first line being line 0 which has the column names 

the current code I use it

```
    //connect to the database 
    $connect = mysql_connect("localhost","username","password"); 
    mysql_select_db("mydatabase",$connect); //select the table 
    // 

    if ($_FILES[csv][size] > 0) { 

        //get the csv file 
        $file = $_FILES[csv][tmp_name]; 
        $handle = fopen($file,"r"); 

        //loop through the csv file and insert into database 
        do { 
            if ($data[0]) { 
                mysql_query("INSERT INTO contacts (contact_first, contact_last, contact_email) VALUES 
                    ( 
                        '".addslashes($data[0])."', 
                        '".addslashes($data[1])."', 
                        '".addslashes($data[2])."' 
                    ) 
                "); 
            } 
        } while ($data = fgetcsv($handle,1000,",","'")); 
        // 

        //redirect 
        header('Location: import.php?success=1'); die; 

} 

```

I need away to remove the following line
Source,First Name,Surname,Phone 1,Phone 2,Contact Email,Title,Ref Number,Date,Status

i was going to just do a `if($data[0]=="Source")` however the issue with this is what if they change the layout of the CSV file or something.

So my question is simple can we either skip the first row being row 0?

but if the row 0 first thing is not Source can I be alerted so I can look at the CSV file?