示例#1
0
<?php

include "header.php";
?>
   
<?php 
// Gets an id from the query string to look up the product in MySQL
require_once "Dao.php";
$dao = new Dao();
$parcel = $_GET["Parcel"];
$estate = $dao->getMortgage($parcel);
echo "<table>";
echo "<tr> ";
echo "<td> " . "Parcel" . ": " . $estate["Parcel"] . "</td>";
echo "</tr>";
echo "<tr> ";
echo "<td> " . "Year Built" . ": " . $estate["noofdwellin"] . "</td>";
echo "</tr>";
echo "<tr> ";
echo "<td> " . "Number of Buildings" . ": " . $estate["occdate"] . "</td>";
echo "</tr>";
echo "<tr> ";
echo "<td> " . "Year Remodeled" . ": " . $estate["yearbuilt"] . "</td>";
echo "</tr>";
echo "<tr> ";
echo "<td> " . "Bedrooms" . ": " . $estate["yearrem"] . "</td>";
echo "</tr>";
echo "<tr> ";
echo "<td> " . "Bathrooms" . ": " . $estate["effage"] . "</td>";
echo "</tr>";
echo "<tr> ";