-
Notifications
You must be signed in to change notification settings - Fork 0
/
announcement.php
43 lines (36 loc) · 1.11 KB
/
announcement.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
<?php
require "header.php";
?>
<div class="content2">
<b><label class="mostread">Announcements</label></b>
<ul>
<?php
$sql="SELECT * from announcement";
$result=mysqli_query($conn,$sql);
$count=0;
foreach($result as $key=>$announcement){
?>
<div class="underlined">
<li ><a href="read_announcement.php?announcement_id=<?php echo $announcement['id'];?>">
<?php
echo $announcement['title'];
?>
</a>
</li>
<li class="right">
<small>By
<?php
echo $announcement['user_name'];
$count++;
?>
</small>
</li>
</div>
<?php
}
?>
</ul>
</div>
<?php
require "footer.php";
?>