I got the following testing SQL statement that link to the database. I do not have any record in the database that matches 900 but it returns the results = 1 instead of 0. Can I know what is the reason for this?
$query = "update mytable set verify = 'yes' where number ='900'";
$result = $conn->query($query);
if (!$result){
$json_out = "[" . json_encode(array("result"=>0)) . "]";
}
else {
$json_out = "[" . json_encode(array("result"=>1)) . "]";
}
echo $json_out;