I'm using REPLACE INTO function to insert/update rows in my table. Is there away that I can check if REPLACE INTO was success or failure?
http://www.php.net/manual/en/function.mysql-affected-rows.php
will return 0 if no change is made, 1 if a new row is inserted, and 2 if a replacement is made.