-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmt-duzenle.php
40 lines (37 loc) · 1 KB
/
mt-duzenle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
session_start();
if(!isset($_SESSION["login"])){
?>
<meta http-equiv="refresh" content="0;URL=giris.php">
<?php
} else
{
?>
<!-- GİRİŞ KONTROL -->
<?php include("header.php") ?>
<?php include("kontrol/veritabani.php") ?>
<section id="content">
<?php
$id=$_POST['id'];
$kullanici=$_POST['kullanici'];
$isEmriNo=$_POST['isEmriNo'];
$imei=$_POST['imei'];
$mAd=$_POST['mAd'];
$mSoyad=$_POST['mSoyad'];
$ariza=$_POST['ariza'];
$tarih=$_POST['tarih'];
$model=$_POST['model'];
$bayiNo=$_POST['bayiNo'];
$ayarguncelle=$connection->query("UPDATE mt set isEmriNo='$isEmriNo',imei='$imei',kullanici='$kullanici',bayiNo='$bayiNo',model='$model',mAd='$mAd',mSoyad='$mSoyad',tarih='$tarih',ariza='$ariza' where id='$id'") or die ("Bir Hata Oluştu");
if($ayarguncelle){
$durum="<h2>İşlem Başarılı</h2>";
}else{
$durum="<h2>Bir hata oluştu</h2>";
}
echo"$durum";
echo" <meta http-equiv=\"refresh\" content=\"0;url=mt.php\"> ";
?>
</section>
<!-- GİRİŞ KONTROL -->
<?php include("footer.php"); ?>
<?php } ?>