-
Notifications
You must be signed in to change notification settings - Fork 0
/
updates.php
53 lines (45 loc) · 1.28 KB
/
updates.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
<?php include("essential.php");
check_login();
dbconnect();
if(isset($_GET['st']))
$mstart=$_GET['st'];
else{
$mstart=0;
}
$lim=3;
echo"<html>
<head>
<script type='text/javascript' src='calendarDateInput.js'> </script>
<script type='text/javascript' src='jquery.js'> </script>
<link type='text/css' rel='stylesheet' href='db.css'>
</head>";
include "header.php";
echo"<body>
<p align='right'> Welcome " . $_SESSION['user'] . " !!! <br/><a href= 'raw.php'>Home</a></p>";
if(isset($_GET['msg'])){
echo "<p style='background-color:yellow;color:black' align=right>" . $_GET['msg'] . "</p>" ;
}
$query ="select * from updates order by mytime desc";
echo" <TABLE BORDER=2 align='center' >
<tr><th>No.</th>
<th>Event</th>
<th>Name</th></tr>";
$q=1;
$category=paginate('updates.php',$query,$mstart,$lim);
while($row=mysql_fetch_assoc($category)){
echo "<tr><td><font face = 'Arial, Helvetica, sans-serif'>";
echo $q;
echo "</font></td>
<td><font face = 'Arial, Helvetica, sans-serif'>";
echo $row['descr'];
echo "</font></td>
<td><font face = 'Arial, Helvetica, sans-serif'>";
echo $row['mytime'];
echo "</font></td>
</tr>";
$q = $q+1;
}
echo "</TABLE>";
echo "</BODY>
</HTML>";
?>