Possible Duplicate:
What does a successful MySQL DELETE return? How to check if DELETE was successful?
Hello,
If I run a delete query, what is the php/mysql error code returned if a row was actually found and deleted or not found (and h开发者_运维技巧ence not deleted)?
Use mysql_affected_rows()
.
You can examine mysql_affected_rows() for that. But there no function, that can tell you which specific rows were updated or deleted by previous DML statement.
Don't use the error code. Call mysql_affected_rows.
精彩评论