Search Open Houses

[insert_php]
$start_date = date(“jS F, Y”, strtotime(‘next Saturday’));
$start_dateSatt = date(“Y-m-d”, strtotime(‘next Saturday’));
$start_dateSunt = date(“Y-m-d”, strtotime(‘next Sunday’));
echo “

Upcoming Open Houses This Weekend

“;
[/insert_php]

[insert_php] echo “Browse our open houses this weekend (“.$start_dateSatt.” – “.$start_dateSunt.”) below.”; [/insert_php]

[insert_php]
$mypix = simplexml_load_file(‘http://www.wgcdesigns.com/virtualoffice/SyndicationFeeds/rss/OPEN-CincyMLS.asp?OFFICEID=309’);
foreach ($mypix->listing as $pixinfo):
$title=$pixinfo->title;
$price=$pixinfo->price;
$icity=$pixinfo->city;
$istate=$pixinfo->state;
$iID=$pixinfo->record_id;
$bedrooms=$pixinfo->bedrooms;
$baths=$pixinfo->baths;
$iStreetAddy=$pixinfo->address;
$description=$pixinfo->description;
$iopenhousestart=$pixinfo->openhousestart;
$iopenhouseend=$pixinfo->openhouseend;
$iopenhousecomments=$pixinfo->openhousecomments;
$iopenhouseagent=$pixinfo->openhouseagent;
$link=$pixinfo->url;
$imagelink=$pixinfo->image;
$image=str_replace(“_b.jpg”,”_s.jpg”,$pixinfo->image);

$start_dateSat = date(“Y-m-d”, strtotime(‘next Saturday’));
$start_dateSun = date(“Y-m-d”, strtotime(‘next Sunday’));
$time = strtotime($iopenhousestart);
$iCheckOpenHouseSD = date(“Y-m-d”, $time);

if(($start_dateSat != $iCheckOpenHouseSD) && ($start_dateSun != $iCheckOpenHouseSD)){
}else {

// ———————————–

echo ”

“;
echo “”;
echo “,$title,“;
echo “

“;
echo ”

“;
echo “
“;
echo ““;

if ( $bedrooms !== ” ) {
echo $bedrooms.” Bedrooms
“;
echo ”


“;
}
if ( $baths !== ” ) {
echo $baths.” Bathrooms
“;
echo ”


“;
}
if ( $lot_size_acres !== ” ) {
echo $lot_size_acres.” Acres
“;
}

$iiprice = (int)$price;
echo “”;
echo ”

“;
echo ”

$”.number_format($iiprice, 0, ”, ‘,’).””;
echo “… ID#”;
echo $iID.”

“;
echo ”

Open House On “.$iopenhousestart.”, From “.$iopenhousecomments.”.

“;
echo ““;
echo $iStreetAddy.” “;
echo $icity.”
“;

echo ”
“;
echo ““;
echo $description.””;

echo ”

“;

}

endforeach;
[/insert_php]