<!doctype html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=ilacgiris.php">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>İlaç Saati Giriş Kayıt</title>

<style>
* {
  box-sizing: border-box;
}

input[type=text],[type=date], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-top:5px;

}

input[type=submit]:hover {
  background-color: #45a049;
}

.ana {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
    #tumsayfa {
    width: 80%;
    position: relative;
    margin: auto;
    margin-top: 6px;
    display:block;
    }

.col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}

.col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}

/* Clear floats after the columns */
.satir:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-25, .col-75, input[type=submit] {
    width: 100%;
    margin-top: 5px;
  }
}
</style>
    <?php include 'menu.php';?>
    <?php include 'baglanti.php';?>
</head>



<?php
 $id = $_POST['id'];
 $veriliszamani= $_POST['verildigizaman'];

//$sqlekle="INSERT INTO gider ( sube, odemeyeri, odemetarihi, odemeyapan, kategori, tutar, tur, not1) VALUES ('$sube','$odemeyeri','$odemetarihi','$odemeyapan','$kategori','$tutar','$tur','$not')";
$sqlekle = "UPDATE ilac SET verildigizaman='$veriliszamani' WHERE id='$id'";
$sonuc=mysqli_query($conn,$sqlekle);
if ($sonuc==0){
echo "Sanırım bir hata oldu, tekrar dene veya Selman'a haber ver!";}
else {
echo "<center><h1>Seni her zaman taktir etmişimdir.</h1></center>";
}
//yeni kayıt ekleme bitiş
 
 
?>

<p align="center" style=" padding-top:100px;">Güç İçinde!</p>
</html>