-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckroll.php
33 lines (31 loc) · 866 Bytes
/
checkroll.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
<?php
ob_start();
session_start();
include('connect.php');
if(isset($_COOKIE["userid"]))
{
if($_COOKIE["userid"]=="user_id_auth_remember")
$_SESSION['userid']="admuser";
}
if(!isset($_SESSION['userid']))
{
header('location:index.php');
}
echo '<table style="color:red;font-size:12px">';
$roll=$_GET['roll'];
$type=$_GET['type'];
if($type=="pro")
$type="PROVISIONAL";
if($type=="mig")
$type="MIGRATION";
$q="select * from history where roll='$roll' and type='$type' order by issue";
$r=mysqli_query($con,$q);
if(($r)&&(mysqli_num_rows($r)>0))
{ echo '<tr class="form-control btn-warning"><th>NOTICE</th></tr><tr><td><hr></td></tr>';
while($row=mysqli_fetch_array($r))
{
echo '<tr><td style="text-transform:lowercase;">This Person has alredy been '.$row[2].'D a '.$type.' CERTIFICATE on '.$row[3].'</td></tr><tr><td><hr></td></tr>';
}
}
echo '</table>';
?>