-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathps-ekle.php
47 lines (38 loc) · 1.11 KB
/
ps-ekle.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
41
42
43
44
45
46
47
<?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
$isEmriNo=$_POST['isEmriNo'];
$mAd=$_POST['mAd'];
$mSoyad=$_POST['mSoyad'];
$kullanici=$_POST['kullanici'];
$bayiNo=$_POST['bayiNo'];
$imei=$_POST['imei'];
$ariza=$_POST['ariza'];
$tarih=$_POST['tarih'];
$model=$_POST['model'];
$getiren=$_POST['getiren'];
$gelengiden=$_POST['gelengiden'];
$ayarguncelle=$connection->query("insert into ps (isEmriNo,mAd,mSoyad,bayiNo,imei,kullanici,ariza,model,tarih,getiren,gelengiden) values ('$isEmriNo','$mAd','$mSoyad','$bayiNo','$imei','$kullanici','$ariza','$model','$tarih','$getiren','$gelengiden')") or die ("bir hata olustu...");
if($ayarguncelle){
$durum2="<h2>İşlem Başarılı</h2>";
}else{
$durum2="<h2>Hiç veri giremediniz..</h2>";
}
echo"$durum2";
echo" <meta http-equiv=\"refresh\" content=\"0;url=ps.php\"> ";
?>
</section>
<!-- GİRİŞ KONTROL -->
<?php include("footer.php"); ?>
<?php } ?>