-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (32 loc) · 896 Bytes
/
index.php
File metadata and controls
35 lines (32 loc) · 896 Bytes
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
<?php
session_start();
include "functions.php";
myHeader("Index");
db_init();
$result = run_query('SELECT categories_id, name, description FROM categories WHERE status = 1');
while ($rows = mysql_fetch_assoc($result)) {
$categories[] = $rows;
}
foreach ($categories as $value) { ?>
<div class="categories">
<a href="topics.php?page=1&id=<?php echo $value['categories_id'] ?>">
<br/>
<?php
echo $value['name']. "<br/>" . $value['description'];
?>
</a>
<hr/>
</div>
<?php
}
?>
<div id="index">
<h3>Търсене по тагове</h3>
<form action="tags_search.php" method="get">
<input type="search" name="search" id="search" placeholder="search"/>
<br/>
<input type="submit" name="searchSubmit" value="Search"/>
</form>
</div>
<?php
footer();