From a753964924103f00f75a7a24d6268664cff766dc Mon Sep 17 00:00:00 2001 From: Umman Hasanov Date: Thu, 12 May 2022 10:47:01 +0400 Subject: [PATCH] --- conn.php | 7 ++ guncellesayfa.php | 61 ++++++++++++ index.php | 175 +++++++++++++++++++++++++++++++++++ islem/guncelle.php | 33 +++++++ islem/insert.php | 30 ++++++ islem/sil.php | 21 +++++ nbproject/project.properties | 7 ++ nbproject/project.xml | 9 ++ 8 files changed, 343 insertions(+) create mode 100644 conn.php create mode 100644 guncellesayfa.php create mode 100644 index.php create mode 100644 islem/guncelle.php create mode 100644 islem/insert.php create mode 100644 islem/sil.php create mode 100644 nbproject/project.properties create mode 100644 nbproject/project.xml diff --git a/conn.php b/conn.php new file mode 100644 index 0000000..70067f8 --- /dev/null +++ b/conn.php @@ -0,0 +1,7 @@ +getMessage(); +} diff --git a/guncellesayfa.php b/guncellesayfa.php new file mode 100644 index 0000000..a603f82 --- /dev/null +++ b/guncellesayfa.php @@ -0,0 +1,61 @@ +query($sql); // de yaddasda olanlara baxmaq ucun +$data = $query->fetch(PDO::FETCH_ASSOC); //Bazadan bir verini yenileyirik +?> + + + + + + + + + + + + + + + + + + +
+

Musteri guncelle

+
+
+ + + + + + + + + + + + + + + +
Musteri adi :
Musteri soyadi :
Musteri numarasi :
+
+ +
+ + + + + + diff --git a/index.php b/index.php new file mode 100644 index 0000000..9912edc --- /dev/null +++ b/index.php @@ -0,0 +1,175 @@ +query($sql); // de yaddasda olanlara baxmaq ucun +$data = $query->fetchAll(PDO::FETCH_ASSOC); // Butun bazani cekirik +?> + + + + + + + + + + + + + + + + + + +
+

Musteri ekle

+
+
+ + + + + + + + + + + + + + + +
Musteri adi :
Musteri soyadi :
Musteri numarasi :
+
+ + + + +
+ + Musteri Ekleme Basarili ! +
+ + + + +
+ + Musteri Eklenmesinde Bir Hata Olustu +
+ +
+ + Musteri Silme Islemi Basarili ! +
+ + + + +
+ + Musteri Silinirken Bir Hata Olustu +
+ +
+ + Musteri Guncelleme Islemi Basarili ! +
+ + + + +
+ + Musteri Guncellenirken Bir Hata Olustu +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
IDMusteri adiMusteri soyadiMusteri numarasiIslemler
+ + + + + + + +
+
+ + + + + \ No newline at end of file diff --git a/islem/guncelle.php b/islem/guncelle.php new file mode 100644 index 0000000..e9c389c --- /dev/null +++ b/islem/guncelle.php @@ -0,0 +1,33 @@ +prepare($sql); + $query->execute(array( + $musteri_ad, $musteri_soyad, $musteri_numara + )); + + $count = $query->rowCount(); + +if ($count > 0) { + header("Location: ../index.php?gstatus=ok"); +} else { + header("Location: ../index.php?gstatus=no"); +} +exit; + + +} + + diff --git a/islem/insert.php b/islem/insert.php new file mode 100644 index 0000000..b540caa --- /dev/null +++ b/islem/insert.php @@ -0,0 +1,30 @@ +prepare($sql); + $query -> execute(); + + $count = $query->rowCount(); + + if($count > 0) { + header("Location: ../index.php?status=ok"); + } + else { + header("Location: ../index.php?status=no"); + } + exit; +} + + +?> + + + diff --git a/islem/sil.php b/islem/sil.php new file mode 100644 index 0000000..9d0fa4c --- /dev/null +++ b/islem/sil.php @@ -0,0 +1,21 @@ +query($sql); +$count = $query->rowCount(); + +if ($count > 0) { + header("Location: ../index.php?dstatus=ok"); +} else { + header("Location: ../index.php?dstatus=no"); +} +exit; + diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..9282ba4 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,7 @@ +include.path=${php.global.include.path} +php.version=PHP_70 +source.encoding=UTF-8 +src.dir=. +tags.asp=false +tags.short=false +web.root=. diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..58e8294 --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,9 @@ + + + org.netbeans.modules.php.project + + + phpCrud + + +