function yemek_onay ($id, $session) {
global $db;
global $suAnSaat;
$hasta = $db->query("SELECT * FROM hastalar WHERE id = '{$id}'")->fetch(PDO::FETCH_ASSOC);
$kullanici = sess_info($session);
$ogun = ogun($suAnSaat);
$result = $db->query("INSERT INTO yemek_log SET hasta_id = '{$id}', ogun = '{$ogun}', kullanici_id = '{$kullanici["id"]}'")->execute();
return $result;}