if (isset($_SESSION["access_granted"]) && !$_SESSION["access_granted"] || !isset($_SESSION["access_granted"])) {
    $_SESSION["status"] = "You need to log in first";
    header("Location:login.php");
}
// newuser_handler.php
require_once "Dao.php";
$dao = new Dao();
$Propaddnum = isset($_GET["Propaddnum"]) ? $_GET["Propaddnum"] : "";
$Primowner = isset($_GET["Primowner"]) ? $_GET["Primowner"] : "";
$address = isset($_GET["address"]) ? $_GET["address"] : "";
//
if ($address == "" && $Propaddnum == "") {
    $estates = $dao->getOwner($Primowner);
} else {
    if ($Propaddnum == "" && $Primowner == "") {
        $estates = $dao->getPropertyDetails($address);
    } else {
        $estates = $dao->getPropertyDetails($Propaddnum);
    }
}
?>
<html>
  <body>
    <ul>
    <?php 
echo "<table>";
echo "<tr> ";
echo "<th> " . "Address" . " </th>";
echo "<th> " . "Parcel " . " </th>";
echo "<th> " . "Owner1" . " </th>";
echo "<th> " . "Owner2" . " </th>";