Use mysqli_info, just after executing the query
$string = mysqli_info ( $link );
returns a string having the relevant information, like for UPDATE
Rows matched: 40 Changed: 40 Warnings: 0
in your case, one row updated but no change, you should get
Rows matched: 1 Changed: 0 Warnings: 0
You can retrieve the value from
preg_match("/Rows matched: (\d+)/", $string, $matches);
$number_of_rows = intval($matches[1]);