We cannot access our listings at this time.
Please try again later"); echo ""; echo ""; echo ""; echo ""; echo ""; $s = ""; $cint = 0; for($i=$startrow;$i<($startrow+$SHOW_X_LISTINGS);$i++) { $l = $r->fetchRow(DB_FETCHMODE_ASSOC,$i); if($l[id]!="") { //get the image $camera=getListingImage($l[id]); //see if we need the NEW tag for listings 3 days or newer //if(strtotime($l[dateadded])>=(time()-604800)) // $new = "\"New"; //else // $new = ""; // $lid = "$l[state]" . "$l[id]"; if($l[bedrooms]=="more") $l[bedrooms]="5+"; if($l[bathrooms]=="more") $fullbaths = "10+"; else $fullbaths = "$l[bathrooms]"; if($l[halfbathrooms]!="" && $l[halfbathrooms]!=0){ if($l[halfbathrooms]=="more") $halfbaths = "10+"; else $halfbaths = $l[halfbathrooms]; } else $halfbaths = 0; if($fullbaths=="10+" && $halfbaths=="10+") $totalbaths = "20+"; else if($fullbaths=="10+") $totalbaths = (10 + $halfbaths)."+"; else if($halfbaths=="10+") $totalbaths = (10 + $fullbaths)."+"; else $totalbaths = $fullbaths + $halfbaths; $l[bathrooms] = "$totalbaths BA"; if($fullbaths!=1 || ($l[halfbathrooms]!="" && $l[halfbathrooms]!=0)){ $l[bathrooms] .= "
$fullbaths Full Bath(s)"; if($l[halfbathrooms]!="" && $l[halfbathrooms]!=0) $l[bathrooms] .= ", $halfbaths Half Bath(s)"; $l[bathrooms] .= ""; } if($l[headline]=="") $l[headline]=$l[description]; //limit the headline length $s = strlen($l[headline]); $h = $l[headline]; $hl = ""; if($s>125) { $s = 125; $dots = " ..."; }//end if() else $dots = ""; for($hi=0;$hi<=$s;$hi++) $hl .= $h[$hi]; $l[headline] = $hl . $dots; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; }//end if(l) }//end for(i) ?>
"; if($startrow=="") $startrow = 0; if($startrow==0) $page = 1; else $page = ceil($startrow / $SHOW_X_LISTINGS) + 1; if($page==1) { $sd = 1; $ed = $SHOW_X_LISTINGS; }//end if(page==1) else { $sd = $page*$SHOW_X_LISTINGS - $SHOW_X_LISTINGS; $ed = ($page*$SHOW_X_LISTINGS); }//end else if($ed>$r->numRows()) $ed = $r->numRows(); echo "Displaying $sd to $ed of " . $r->numRows() . " matches: Page $page of " . ceil($r->numRows()/$SHOW_X_LISTINGS) . " 
"; //use spage to generate startrow $spage = $page; if($r->numRows()<=$SHOW_X_LISTINGS) { $endpage = ceil($r->numRows()/$SHOW_X_LISTINGS); $page = 1; }//end if else if(($page+10)>ceil($r->numRows()/$SHOW_X_LISTINGS)) { $endpage = ceil($r->numRows()/$SHOW_X_LISTINGS); $page = $endpage - 10; if($page<=0) $page = 1; }//end if() else { $endpage = $page + 9; }//end else //echo $HTTP_DOMAIN; if(($page-1)!=0) echo " Previous   "; for($i=$page;$i<=$endpage;$i++) { //step through and show page #s if($i==(ceil($startrow/$SHOW_X_LISTINGS)+1)) $f = "size=\"4\""; else $f = "size=\"2\""; echo "$i  "; }//end for(i) if(($i-1)>(ceil($startrow/$SHOW_X_LISTINGS)+1)) echo "  Next   "; echo "
"; //END CODE FOR SHOWING PAGE NUMBERS echo "
"; if($style=="Apartment" || $style=="House") echo "Show All   "; if($style!="Apartment") echo "Apartments only   "; if($style!="House") echo "Houses only"; echo "

"; echo "
$l[headline]$camera
"; echo "Address"; echo "Size"; echo "Rent
$l[address]
$l[city],$l[state] $l[zip]
$l[bedrooms] BR / $l[bathrooms]\$" . number_format($l[rent],0) . "
" border="0" width="100">

Site Powered by RentalHouses.com


Explore a Community


" target="_blank">Rental Application



MoverMax Moving Directory

Utility Connection

Roommate Directory