Reactivate a Rental Property
The property has been reactivated.";
echo "';
}
}
elseif ( isset($_POST['selectlisting'] ) ) { //display the reactivate listing form ///////////
$listing_id = $_POST['listing_id'];
$getlistinginfo = mysqli_query($dbcrent, " SELECT * FROM rentals WHERE listing_id = '$listing_id' ")
or trigger_error("Bad getlistinginfo: " . mysqli_error($dbcrent));
while ($ary = mysqli_fetch_assoc($getlistinginfo)) {
while (list($key,$val) = each($ary)) {
$$key = $val;
}
?>
Select rental property to reactivate:";
$checkif = mysqli_query($dbcrent, "SELECT listing_id FROM rentals WHERE active = 0
") or trigger_error("Bad checkif: " . mysqli_error($dbcrent));
if (mysqli_num_rows($checkif) < 1 ) {
echo "There are no properties to reactivate.
";
} else {
?>