-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect.php
32 lines (31 loc) · 1.09 KB
/
select.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
<?php
if(isset($_POST["employee_id"]))
{
$output = '';
$connect = mysqli_connect("localhost", "phpmyadmin", "Admin@123", "fitness");
$query = "SELECT * FROM tbl_creators WHERE id = '".$_POST["employee_id"]."'";
$result = mysqli_query($connect, $query);
$output .= '
<div class="table-responsive">
<table class="table table-bordered">';
while($row = mysqli_fetch_array($result))
{
$output .= '
<tr>
<td width="30%"><label>Name</label></td>
<td width="70%">'.$row["name"].'</td>
</tr>
<tr>
<td width="30%"><label>Email</label></td>
<td width="70%">'.$row["email"].'</td>
</tr>
<tr>
<td width="30%"><label>Roll No</label></td>
<td width="70%">'.$row["roll"].' </td>
</tr>
';
}
$output .= "</table></div>";
echo $output;
}
?>