-
Notifications
You must be signed in to change notification settings - Fork 0
/
showdata.php
56 lines (43 loc) · 1.09 KB
/
showdata.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
<html>
<head></head>
<body>
<?php
$conn=mysqli_connect("localhost","root","","miniproject");
$sql="SELECT Id, Full_Name,Date,Blood_Group,Email,Mobile_no FROM registration_details";
$result=mysqli_query( $conn,$sql);
if($result)
{ echo ".Registered Users";}
else
{echo "failed";}
$total=mysqli_num_rows($result);
if($total!=0)
{
?>
<table border="1" width="1000px" height="600px">
<tr>
<td><FONT size="5" color="Blue" >ID</FONT></td>
<td><FONT size="5" color="Blue" >FULL_NAME</FONT></td>
<td><FONT size="5" color="red">DATE</FONT></td>
<td><FONT size="5" color="red">BLOOD_GROUP</FONT></td>
<td><FONT size="5" color="red">EMAIL</FONT></td>
<td><FONT size="5" color="red">MOBILE_NO</FONT></td>
</tr>
<?php
while($res=mysqli_fetch_assoc($result))
{
echo "<tr>
<td>".$res["Id"]."</td>
<td>".$res["Full_Name"]."</td>
<td>".$res["Date"]."</td>
<td>".$res["Blood_Group"]."</td>
<td>".$res["Email"]."</td>
<td>".$res["Mobile_no"]."</td>
";
}
}
else
{echo "oops!";}
?>
</table>
</body>
</html>