-
Notifications
You must be signed in to change notification settings - Fork 4
/
category.php
executable file
·58 lines (42 loc) · 1.21 KB
/
category.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
<?php
include ("header.php");
if ($_GET["id"]) {
$id = $_GET["id"];
$query = $db-> prepare("SELECT category_name FROM categories where category_id = ? ");
$query -> execute(array($id));
$query -> setFetchMode(PDO::FETCH_CLASS, 'categories');
$category_name = $query -> fetchAll();
$category_name = $category_name[0]["category_name"];
?>
<div class="row">
<!-- Blog Entries Column -->
<div class="col-md-8">
<h1 class="page-header">
<?= $category_name; ?>
<!-- <small>Secondary Text</small> -->
</h1>
<!-- Blog Posts -->
<?php categoryListDom($id); //sql inj?>
<!-- Pager -->
<!-- <ul class="pager">
<li class="previous">
<a href="#">← Older</a>
</li>
<li class="next">
<a href="#">Newer →</a>
</li>
</ul> -->
</div>
<!-- Blog Sidebar Widgets Column -->
<div class="col-md-4">
<?php include ("right_bar.php"); ?>
</div>
</div>
<!-- /.row -->
<hr>
<?php
}else {
echo "Hata";
}
include ("footer.php");
?>