-
Notifications
You must be signed in to change notification settings - Fork 3
/
lan_view.php
37 lines (37 loc) · 870 Bytes
/
lan_view.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
<?php
if(!isset($_SESSION)) {
session_start();
}
include "auth.php";
include "header_voter.php";
?>
<center><h3> Voting So Far </h3></center>
<?php
include "connection.php";
$member = mysqli_query($con, 'SELECT * FROM languages' );
if (mysqli_num_rows($member)== 0 ) {
echo '<font color="red">No results found</font>';
}
else {
echo '<center><table><tr bgcolor="#FF6600">
<td width="30px">ID</td>
<td width="100px">LANGAUAGE</td>
<td width="100px">ABOUT</td>
<td width="30px">VOTE</td>
</tr>';
while($mb=mysqli_fetch_object($member))
{
$id=$mb->lan_id;
$name=$mb->fullname;
$about=$mb->about;
$vote=$mb->votecount;
echo '<tr bgcolor="#BBBEFF">';
echo '<td>'.$id.'</td>';
echo '<td>'.$name.'</td>';
echo '<td>'.$about.'</td>';
echo '<td>'.$vote.'</td>';
echo "</tr>";
}
echo'</table></center>';
}
?>