I am using mysql_query() to execute UPDATE SQL on my table. I want to know whether the query has updated any row or not.
    // $query contains UPDATE SQL
$result = mysql_query($query, $connection);
if(!$result) {
    die("Database connection failed: " . mysql_error());
}
I tried to check value of $result, but it always comes out to be 1 for both cases(0 or more than 0 rows updated).
Can anyone please help.
Thanks.
 
     
     
     
    