I'm trying to set up the script using INSERT IGNORE but it's not working. I keep getting a column count doesn't match error.
Here's the code I have on my php page. Can you tell me where I'm going wrong please?
PHP Code:
$query = "INSERT IGNORE Used_Notes SELECT Feed_Id, Full_Registration FROM Used_Stock WHERE Feed_Id='11102' AND Model LIKE '%M3%' OR Feed_Id='11102' AND Model LIKE '%M5%' OR Feed_Id='11102' AND Model LIKE '%M6%' OR Feed_Id='11102' AND Model LIKE '%Z4 M%' OR Feed_Id='11102' AND Model LIKE '%X5 M%' OR Feed_Id='11102' AND Model LIKE '%X6 M%'" ;
$result = mysql_query($query) or die(mysql_error());
Bookmarks