I have a PHP script that imports a csv into a MySQL database. The import works fine using this line of code
$query = "insert into $databasetable values('$linemysql');";
The only problem is when I try to import another csv with duplicates the script errors out. How do I adjust this script to skip duplicates if they exist?