I have a CSV file and I read data from CSV file then I want to skip first line of CSV file.Which\'ll contain any header. I am using this code.
while (($emapDa
You can add a simple check and skip the query if the check fails:
$firstline = true; while (($emapData = fgetcsv($file, 10000, ",")) !== FALSE) { if (!$firstline) { // Code to insert into database } $firstline = false; }