-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaturalar-ekle.php
61 lines (52 loc) · 1.76 KB
/
faturalar-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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?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'];
$ucret=$_POST['ucret'];
$aciklama=$_POST['aciklama'];
$durum=$_POST['durum'];
$gelis=$_POST['gelis'];
$imei=$_POST['imei'];
$aciklama=$_POST['aciklama'];
$faturaAcan=$_POST['faturaAcan'];
$olusturulmaTarihi=$_POST['olusturulmaTarihi'];
$odeme=$_POST['odeme'];
$model=$_POST['model'];
$parcalar=$_POST['parcalar'];
$telefon=$_POST['telefon'];
$gspn_tarih=$_POST['gspn_tarih'];
$adres=$_POST['adres'];
$ayarguncelle2=$connection->query("select * from faturalar where isEmriNo='$isEmriNo'")->fetchAll(PDO::FETCH_ASSOC);
if(!$ayarguncelle2)
{
$ayarguncelle=$connection->query("insert into faturalar (isEmriNo,telefon,gspn_tarih,mAd,mSoyad,durum,ucret,odeme,imei,gelis,aciklama,faturaAcan,faturaKapatan,faturaDuzenleyen,olusturulmaTarihi,duzenlemeTarihi,model,parcalar,adres) values ('$isEmriNo','$telefon','$gspn_tarih','$mAd','$mSoyad','$durum','$ucret','$odeme','$imei','$gelis','$aciklama','$faturaAcan','0','$faturaAcan','$olusturulmaTarihi','$olusturulmaTarihi','$model','$parcalar','$adres')") or die ("bir hata olustu...");
echo" <meta http-equiv=\"refresh\" content=\"0;url=faturalar.php?faturaeklendi=1\"> ";
}
else
{
echo" <meta http-equiv=\"refresh\" content=\"0;url=faturalar.php?isemrizatenmevcut=1\"> ";
}
if($ayarguncelle){
$durum2="<h2>İşlem Başarılı</h2>";
}else{
$durum2="<h2>Hiç veri giremediniz..</h2>";
}
echo"$durum2";
?>
</section>
<!-- GİRİŞ KONTROL -->
<?php include("footer.php"); ?>
<?php } ?>