-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanelsayfasi.php
105 lines (73 loc) · 1.66 KB
/
panelsayfasi.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
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<style>
#visiters {
font-family: "Times New Roman", Times, serif;
border-collapse: collapse;
width: 100%;
}
#visiters td,
#visiters th {
border: 1px solid #ddd;
padding: 8px;
}
#visiters tr:nth-child(even) {
background-color: #f2f2f2;
}
#visiters tr:hover {
background-color: #ddd;
}
#visiters th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
</head>
<body>
<table id="visiters">
<tr>
<th>İSİM</th>
<th>SOYİSİM</th>
<th>EMAIL</th>
<th>MESAJ</th>
</tr>
<?php
session_start();
if($_SESSION["user"]=="")
{
echo "<script>
window.location.href = 'cikis.php'
</script>";
}
else
{
include("baglanti.php");
$secme="Select * From iletisim";
$sonuc=$baglan->query($secme);
if($sonuc-> num_rows > 0)
{
while($cek=$sonuc->fetch_assoc())
{
echo "
<tr>
<td>".$cek['isim']."</td>
<td>".$cek['soyisim']."</td>
<td>".$cek['email']."</td>
<td>".$cek['mesaj']."</td>
</tr>
";
}
}
else
{
echo "Veritabanında kayıtlı hiçbir veri bulunamamıştır.";
}
}
?>
</table>
</body>
</html>