I am using PHP and MySQL.
If I use an INSERT ON DUPLICATE UPDATE
SQL statement, then how do I know if the last operation was an successful insert and not an update or unsuccessful insert?
The assumptions are the table in question does not use an auto increment, so I can't use a mysql_insert_id
to help me find out.