Having a problem with that "insert ignore into".
If it is a new record, it works, when it is a excisting record that needs to be updated, it is giving me this error:
Cannot execute query: INSERT IGNORE INTO (gedcom,kennel) VALUES ("World","Avongara")
What or where is it going wrong? This message is for me not enough to find the problem.
$kennels = array();
if( !in_array( $kennel, $kennels ) ) array_push( $kennels, $kennel );
foreach( $kennels as $kennel ) {
$query = "INSERT IGNORE INTO $kennels_table (gedcom,kennel) VALUES (\"$tree\",\"$kennel\")";
$result = @mysql_query( $query ) or die ("$admtext[cannotexecutequery]: $query");
}
Thanks for helping