-
Notifications
You must be signed in to change notification settings - Fork 9
/
vehiclestoremore.php
52 lines (45 loc) · 1.52 KB
/
vehiclestoremore.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
<?php
session_start();
include("header.php");
include("sidebar.php");
include("dbconnection.php");
$sql = mysql_query("select * from vehiclestore where vehicleid=$_GET[vahicleid]");
$row = mysql_fetch_array($sql);
if(!isset($_SESSION[custid]))
{
header("Location: login.php");
}
?>
<div id="main">
<h3>Vehicle store</h3>
<table width="538" border="1">
<tr>
<td width="268">
<p><img src="upload/<?= $row['images']; ?>" width="208" height="130" align="left" /><br />
<br />
</p></td>
<td width="246"><p><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['model']; ?> <br />
<strong> Brand:</strong> <?= $row['brand']; ?><br />
<br />
<br />
</p></td>
</tr>
<tr>
<td>Other Information</td>
<td><p><?= $row['description']; ?></p>
</td>
</tr>
<tr>
<td colspan="2"><strong>Estimated price: Rs.<?= $row['estprice']; ?></strong></td>
</tr>
<tr>
<td align="right"> <strong><?php echo "<a href='testdrive.php?vahicleidnum=$row[vehicleid]'>Test Drive>></a> "; ?></strong></td>
<td align="right"><strong><?php echo"<a href='vehiclestorebook.php?vahicleid=$row[vehicleid]'>Book Vehicle Now>></a></strong>"; ?></strong></tr>
</table>
</div>
<!-- wrap ends here -->
</div>
<?php
include("footer.php");
?>