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
if your update query is in a variable named $query, you can do;
$result = mysql_query($query);
if($result){
//succes!
} else {
//fail!
}
Hope this helps. If you just want to know if your query was executed succesfully, this will do. If you really want to know how many rows are affected, use the other suggestions.