-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstudenteventheadtablepaid.php
67 lines (66 loc) · 1.65 KB
/
studenteventheadtablepaid.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
session_start();
if(!isset($_SESSION['user']))
{
header("Location: index.php");
}
$login_id=$_SESSION['login_id'];
$full_name=$_SESSION['full_name'];
$branch=$_SESSION['branch'];
$year=$_SESSION['year'];
$mobile_no=$_SESSION['mobile_no'];
$authority=$_SESSION['authority'];
$event_auth=$_SESSION['event_auth'];
include 'header.php';
include 'validation.php';
include 'studentsidenavbar.php';
?>
<div class="col-sm-9">
<div class="main" id="logindiv">
<center>
<h1><?php echo $event_auth; ?> Participants</h1>
<h3>List Of Paid Participating Students</h3><br />
<div class="table-responsive">
<table class="headtable">
<tr>
<th>Sr No</th>
<th>Name</th>
<th>Branch</th>
<th>Year</th>
<th>Date</th>
<th>Paid</th></tr>
<?php
include_once 'dbconnect.php';
$sql_query=mysqli_query($bd,"SELECT * FROM $event_auth WHERE paid='yes'");
if(mysqli_num_rows($sql_query)>0)
{
$i=1;
while($row=mysqli_fetch_row($sql_query))
{?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row[2]; ?></td>
<td><?php echo $row[3]; ?></td>
<td><?php echo $row[4]; ?></td>
<td><?php echo $row[7]; ?></td>
<td><?php echo $row[6]; ?></td>
</tr>
<?php
$i++;
}
}
else
{?>
<tr>
<td colspan="6">There are no Paid Participants!</td>
</tr>
<?php
}
?>
</table>
</div>
</center>
</div>
</div>
</div>
<?php include 'footer.php';?>