I am not sure how you have structured your conditional if-statement. However, when the query updates the value(s), it returns true. Everything except that means it failed. In that case, simply place the variable in an if-statement like shown below:
Try this:
// $udpate is true
if($update){
// Update was successful
}else{
// Update failed
}