<html>
<head>
<title>Vehicle List</title>
</head>
<body>
<?
include("VehicleDAO.php");
$dao = new VehicleDAO();
$volist = $dao->findWhere(" ", "year DESC");
?>
<table border="1">
<tr>
<th>Stock #</th>
<th>Year</th>
<th>Make</th>
<th>Model</th>
<th>Price</th>
</tr>
<?
foreach($volist as $vo) {
$buf = "<tr>";
$buf .= "<td><a href='appedit.php?vid=$vo->vehicleid'>$vo->vehicleid</a></td>";
$buf .= "<td>$vo->year</td>";
$buf .= "<td>$vo->make</td>";
$buf .= "<td>$vo->model</td>";
$buf .= "<td>$vo->price</td>";
$buf .= "</tr>";
echo $buf;
}
?>
</table>
</body>
</html>