$sql_insert = "INSERT IGNORE .....";
if(mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error()))
{
//code to execute
}
I want to execute code if the row is inserted. Is there some time of value that can be returned that would tell me if the statement was inserted or ignored?
Edit: Right now, "code to execute" always executes - even on ignore instances