-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadminpage1.php
36 lines (30 loc) · 1.08 KB
/
adminpage1.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
<?php
$s_name = "localhost";
$username = "root";
$password = "";
$connection = mysqli_connect($s_name,$username,$password,"e_voting");
if(!$connection)
{
echo "not connected";
}
else{
$con_id="$_POST["con_id"];
$query = "select v_id
from nominee where con__id = '$con_id' ";
$qr = mysqli_query($connection,$query);
?>
<h3>Nominees List</h3><br/>
<form action="contestor.php" method="POST">
<?php
while($row = mysqli_fetch_array($qr))
{?>
<input type="checkbox" name="vid[]" id="color" value="<?php row[0] ?>"> 1 <br/>
<?php
}
?>
// <input type="checkbox" name="vid[]" id="color" value="red"> 2 <br/>
// <input type="checkbox" name="vid[]" id="color" value="red"> 3 <br/>
// <input type="checkbox" name="vid[]" id="color" value="red"> 4 <br/>
// <input type="checkbox" name="vid[]" id="color" value="red"> 5 <br/>
<button type="button" onclick="document.getElementById('id01').style.display='none'">Approve</button>
</form>