-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
62 lines (49 loc) · 2 KB
/
routes.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
57
58
59
60
61
62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Welcome to James Buchanan Pub and Restaurant</title>
<link rel="stylesheet" type="text/css" href="xres/css/style.css" />
<link rel="icon" type="image/png" href="xres/images/favicon.png" />
<link type="text/css" href="css/styles.css" rel="stylesheet" media="all" />
</head>
<body>
<div id="wrapper">
<div id="header">
<ul id="mainnav">
<li><a href="dashboard.php">Home</a></li>
<li><a href="history.php">Booking</a></li>
<li class="current"><a href="routes.php">Routes</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li ><a href="search.php">Search</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div id="content">
<div id="gallerycontainer">
<div class="portfolio-area" style="margin:0 auto; padding:140px 20px 20px 20px; width:820px;">
<div id="contactleft">
<h1>BUS ROUTE</h1>
<div>
<?php Include('db.php');
$query="SELECT *FROM businfo";
$result=mysqli_query($con,$query)or die(mysqli_error($con));
?>
<table style="width:70%" border="1">
<tr><th>Bus ID</th><th>Bus name</th><th>Starting point</th><th>Destination</th><th>Price</th><th>Seats Avalible</th><th>Type of bus</th><th>Date</th>
<?php
while ($row = mysqli_fetch_array($result, MYSQLI_BOTH)) { ?>
<tr> <th><?php echo $row['id_no'] ; ?> </th>
<th><?php echo $row['name'] ; ?></th>
<th><?php echo $row['startP'] ; ?></th>
<th><?php echo $row['desP'] ; ?></th>
<th><?php echo $row['price'] ; ?></th>
<th> <?php echo $row['seat'] ;?> </th>
<th><?php echo $row['type'] ; ?></th>
<th><?php echo $row['bdate'] ; ?></th></tr>
<?php }?>
</form>
</div>
</div>
</body>
</html>