How do i find if my update is successful or not? i update using a where uniqueName=name so i should always only update 0 rows or 1. What is a good way to check if i updated
mysql_affected_rows() will return the number of rows affected by your update.
mysql_affected_rows()
http://us.php.net/manual/en/function.mysql-affected-rows.php