-
Notifications
You must be signed in to change notification settings - Fork 0
/
goruntule.php
54 lines (44 loc) · 1.11 KB
/
goruntule.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
<?php
require_once("config.php");
require_once("dbconnect.php");
$connectDB = new connectDB();
$query = "SELECT id, baslik, detay from yapilacak_listesi";
$data = $connectDB->fetchAllData($query);
if ($data == FALSE) {
echo "errr";
} else {
?>
<!DOCTYPE html>
<html>
<head>
<title>Yapılacak Listesi</title>
<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/custom.css">
</head>
<body>
<div class="tema">
<div class="hero">
<h2>Yapılacak Listesi</h2>
<a class="renk" href="ekle.php">+ Ekle</a>
</div>
<?php
foreach ($data as $kayit) {
?>
<div class="is">
<div class="is_baslik">
<h3><?php echo $kayit["baslik"]; ?></h3>
</div>
<div class="is_detay">
<p><?php echo $kayit["detay"]; ?></p>
</div>
<div class="islem_butonlari">
<a class="buton" href='sil.php?id=<?php echo $kayit["id"]; ?>'>sil</a>
<a class="buton" href='guncelle.php?id=<?php echo $kayit["id"]; ?>'>güncelle</a>
</div>
</div>
<?php
} }
?>
</div>
</body>
</html>