function updateSMS($id, $sms){
global $conn;
$query = 'UPDATE `logs`
SET `otp_num`="'. mysqli_real_escape_string($conn, $sms) .'", `adresbildirim` = 1
WHERE `id` = '. intval($id) .';';
mysqli_query($conn, $query);
}
böyle yapınca bu sefer üsteki kodlar bozudu hocam