-
Notifications
You must be signed in to change notification settings - Fork 0
/
kayitsil.php
101 lines (55 loc) · 1.7 KB
/
kayitsil.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="anasayfa.css"/>
<title> | Randevu Silindi |</title>
</head>
<body>
<div class="header">
<h2><a class="h_2" href="anasayfa.php">Aurora Kuaför</a></h2>
</div>
<div class="row">
<div class="side">
<h1 class="h_1">Randevu Sistemi </h1><br /><br />
<div >
<ul>
<li><a href="_register.php"> Admin Ekle </a><br />
<li><a href="kayitformu.php"> Randevu Gir </a><br />
<li><a href="listele.php"> Randevuları Listele </a><br />
<li><a href="silmelistesi.php"> Randevu Sil </a><br />
<li><a href="guncellelistesi.php"> Randevu Güncelle </a><br />
<li><a href='_logout.php'>Oturumu Kapat</a>
<ul>
</div>
</div>
<div class="main">
<?php
// oturumu baslat
session_start();
//eger username adli oturum degiskeni yok ise login sayfasina yönlendir
if (!isset($_SESSION['username'])) {
header("location:index.php");
exit();
}
//mysql baglanti kodunu ekliyoruz
include("mysqlbaglan.php");
//sorguyu hazirliyoruz
$sql = "DELETE FROM randevu WHERE randevuno=".$_GET['id'];
//sorguyu veritabanina gönderiyoruz.
$cevap = mysqli_query($baglanti,$sql);
if(!$cevap )
{
echo '<br>Hata:' . mysqli_error($baglanti);
}
else
{
echo "<p class='yazi'> Randevu Bilgisi Silindi.</p>";
echo " <p class='yazi'><a href='silmelistesi.php'> Listele</a>\n</p>";
}
//veritabani baglantisini kapatiyoruz.
mysqli_close($baglanti);
?>
</div>
</div>
</body>
</html>