-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvehiclestore.php
118 lines (109 loc) · 5.44 KB
/
vehiclestore.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
session_start();
include("header.php");
if(isset($_SESSION[empid]))
{
header("Location: empaccount.php");
}
include("sidebar.php");
include("dbconnection.php");
$sql = mysql_query("select * from vehiclestore where status != 'Sold'");
?>
<div id="main">
<h3>Vehicle store</h3>
<div id="wrapper">
<?php
while($row = mysql_fetch_array($sql))
{
?>
<div id="products">
<table width="497" border="0">
<tr>
<td><img src="upload/<?= $row['images']; ?>" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['model']; ?> <br />
<strong> Brand:</strong><?= $row['brand']; ?><br />
<strong>Estimated price: </strong>$<?= $row['estprice']; ?><br />
<strong> <?php echo "<br><a href='testdrive.php?vahicleidnum=$row[vehicleid]'>Test Drive>></a> <a href='vehiclestoremore.php?vahicleid=$row[vehicleid]'>More>></a></strong><br />"; ?>
<br />
</p>
</td></tr></table>
</div>
<?
}
?>
</div>
<!--<table width="538" border="1">
<tr>
<td width="268">
<p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']['0']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
<td width="246"><p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']['1']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
</tr>
<?
// }
?>
<tr>
<td> <p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
<td> <p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
</tr>
<tr>
<td> <p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
<td> <p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
</tr> <tr>
<td> <p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
<td> <p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
<strong>Model:</strong> <?= $row['vehname']; ?> <br />
<strong> Brand:</strong> tyere<br />
<strong>Estimated price: </strong>Rs.20000<br />
<strong> <a href="vehiclestoremore.php">More>></a></strong><br />
<br />
</p></td>
</tr>
</table>-->
</div>
<!-- wrap ends here -->
</div>
<?php
include("footer.php");
?>