-
Notifications
You must be signed in to change notification settings - Fork 0
/
land_owner_guest.php
54 lines (46 loc) · 1.36 KB
/
land_owner_guest.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
<?php
include_once "header.php";
include_once "connection.php";
if(!mysqli_connect_errno())
{
$guest_list = mysqli_query($con, "SELECT * FROM guest_list ORDER BY id ASC");
mysqli_close($con);
}
?>
<h2>The padding Property</h2>
<p>This property adds space between the border and the content in a table.</p>
<table style="background-color: white;">
<thread >
<th style = "color: blue; background-color: orange; ">Sl #</th>
<th style = "color: blue; background-color: orange; ">ID</th>
<th style = "color: blue; background-color: orange; ">Name</th>
<th style = "color: blue; background-color: orange; ">Email</th>
<th style = "color: blue; background-color: orange; ">Gender</th>
<th style = "color: blue; background-color: orange; "></th>
</thread>
<tbody style="color: red">
<?php
$sl_no=1;
foreach($guest_list as $guest_lists)
{ ?>
<tr>
<td style = "color: orange; background-color: blue; "><?php echo $sl_no;?></td>
<td><?php echo $guest_lists['id'];?></td>
<td><?php echo $guest_lists['first_name'].' '.$guest_lists['last_name'];?></td>
<td><?php echo $guest_lists['email'];?></td>
<td><?php echo $guest_lists['gender'];?></td>
</tr>
<?php
$sl_no++;
} ;?>
</tbody>
</table>
</p>
</p>
</div>
</div>
</body>
</html>
<?php
include_once "under.php";
?>