-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearchTags.php
More file actions
34 lines (31 loc) · 815 Bytes
/
Copy pathsearchTags.php
File metadata and controls
34 lines (31 loc) · 815 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
<?php
require_once 'include/lib.php';
$tags=new item_class();
if(isset($_POST['tag']))
{
$search_tag=$_POST['tag'];
$tags->sql_query("SELECT * FROM tags where tag LIKE '$search_tag%' ");
}
else
$tags->sql_query("select * from tags");?>
<?php
if($tags->num_rows){
while($row=$tags->load_datas()){?>
<div class="box-tag">
<div class="box-tag-item">
<div class="box-tag-details">
<div class="box-tag-name">
<a href="tagged_posts.php?tid=<?=$row['id']?>"><?=$row['tag'];?></a>
</div>
<div class="box-tag-des">
<?=$row['description'];?>
</div>
<div class="box-tag-reput-details">
post:<?=$row['maxpost']?>  follow :<?=$row['followers']?>
</div>
</div>
</div>
</div>
<?php }}
else die("No Results");
?>