|
<%@ include file="../WEB-INF/jsp/city_side_menu2.jspf" %>
|
|
<%@ include file="../WEB-INF/jsp/top_menu.jspf" %>
|
<%=city_name%>, <%=region_name%>
Filter the results on the map and on the property list by changing criteria.
All properties meeting criteria are shown automatically.
|
|
Properties in <%=city_name%>
| Property ID |
Address |
City |
Bedrooms |
Bathrooms |
Square feet |
<%@ include file="/WEB-INF/jsp/radius_function.jsp" %>
<%
Connection con = null;
try {
// lat and lng definition are on file city_scriptlet.jspf
double[] cords = getRadiusCords(60, lat, lng);
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/sstrehli1?user=sstrehli1&password=frboadmin2007");
String query = "SELECT property_id, address, country_id, country_name, bedrooms, bathrooms, sqft, property.latitude, property.longitude, cities.city, property.city_id FROM property, cities WHERE property.city_id = cities.city_id AND property.enabled = 1 AND property.latitude >= " + cords[0] + " AND property.longitude >= " + cords[1] + " AND property.latitude <= " +cords[2] + " AND property.longitude <= " +cords[3];
PreparedStatement Ps = con.prepareStatement(query);
//Ps.setInt(1,city_id);
ResultSet Rs = Ps.executeQuery();
while(Rs.next()) {
long property_id = Rs.getLong("property_id");
int country_id = Rs.getInt("country_id");
double latitude = Rs.getDouble("latitude");
double longitude = Rs.getDouble("longitude");
String address = Rs.getString("address");
String country_name = Rs.getString("country_name");
String city_name2 = Rs.getString("city");
int city_id2 = Rs.getInt("city_id");
int bedrooms = Rs.getInt("bedrooms");
int bathrooms = Rs.getInt("bathrooms");
int sqft = Rs.getInt("sqft");
String query2 = "SELECT date_in, date_out FROM rates WHERE property_id = ?";
PreparedStatement Ps2 = con.prepareStatement(query2);
Ps2.setLong(1, property_id);
ResultSet Rs2 = Ps2.executeQuery();
%>
| #<%=property_id%> |
<%=address%> |
<%=city_name2%> |
<%=bedrooms%> |
<%=bathrooms%> |
<%=sqft%> |
<%
Rs2.close();
Ps2.close();
}
Rs.close();
Ps.close();
con.close();
con = null;
} catch(Exception e) {out.print(e.toString()); out.print(e.getMessage());
}
finally {
if(con!=null) {
con.close();
con = null;
}
}
%>
| |
|
|
|
|
|
<%@ include file="../WEB-INF/jsp/footer.jspf" %>
|
Virginia Rental Links
Home rentals in Lynchburg Virginia and condo rentals in Lynchburg Virginia
Center Virginia house rentals, Center Virginia vacation homes, and vacation rentals in Center Virginia
Danville Virginia rental home, condo rentals in Danville Virginia, Danville Virginia houses for rent, and vacation rental in Danville Virginia
Holiday rentals in Hunter Mill Virginia and rental properties in Hunter Mill Virginia
Condos for rent, Three Chopt Virginia rental properties, and Three Chopt vacation homes for rent by owner
Houses for rent Matoaca, apartment rentals Matoaca, Matoaca Virginia real estate rentals, and Matoaca Virginia bed and breakfast rentals
Manassas Virginia vacation rentals and homes for rent in Manassas
Short term rentals, homes for rent Leesburg, and Leesburg apartment rentals
Hampton for rent by owner homes, rent house Hampton Virginia, house rentals Hampton Virginia, and vacation homes for rent by owner in Hampton Virginia
Vacation rentals Falls Church and house rentals in Falls Church Virginia
Vacation rentals in Brentsville Virginia, condo rentals Brentsville Virginia, and Brentsville rental properties
Homes for rent by owner, Occoquan Virginia rental home, rent houses Occoquan Virginia, and short term rentals
Bristol Virginia houses for rent and home rentals in Bristol Virginia
Detect and light upon Lunenburg short term rentals, vacation homes Lunenburg Virginia, holiday rentals, and Lunenburg Virginia rental homes.
Relocate small number and peculiar abstracts in Sugarland Run and record Sugarland Run Virginia for rent by owner homes.
Find, recognize, and discern bed and breakfast rentals Greenway, rent houses in Greenway United States, and Greenway United States rental properties.
Notice and observe apartment rentals Carroll Virginia, condo rentals in Carroll Virginia, and Carroll Virginia rental homes.
Contrive and contrive holiday rentals Charles City Virginia and Charles City rental properties.
Espy and dig up rent house in East Stone Gap United States and homes for rent by owner East Stone Gap United States.
Catch, glimpse, and light upon real estate rentals in Doswell United States, bed and breakfast rentals Doswell United States, and rental home Doswell.
Find and contrive Kenbridge vacation homes for rent by owner and Kenbridge United States vacation homes.
For Rent By Owner can oblige and secure loft directories, mountain lists of marked properties, beach ads, and hidden ads exclusive classifieds, loft listings, log listings, and lakefront lists of marked properties to plug your Sugarland Run Virginia crossing.
Originate, recognize, and move bed and breakfast rentals Powhatan Virginia, rent house, and real estate rentals Powhatan.
Determine, notice, and glimpse Sussex Virginia homes for rent, rent house in Sussex Virginia, rental apartment in Sussex Virginia, and real estate rentals.
Learn, move, and ferret out houses for rent in Nelson Virginia, real estate rentals in Nelson, houses for rent in Nelson Virginia, and Nelson Virginia home rentals.
We planned, performed, and phrased our for rent by owner website to be pretty, pulchritudinous, radiant, and admirable.
Relocate, discern, and elicit Nassawadox United States rental home, houses for rent Nassawadox, and condo rentals Nassawadox.
Lead off your inquest online on Wednesday, now, on Thursday, or tonight for your condo rentals Sugarland Run, Sugarland Run Virginia rent house, and vacation homes for rent by owner Sugarland Run Virginia.
Our site, FRBO.com does encompass special loft and waterfront house, hacienda, bungalow, and houses.
You can move, notice, and notice vacation rentals, rental home in Sugarland Run, and homes for rent by owner in Sugarland Run.
Sugarland Run dominion employs many condo owners, town home owners, and third party listing companies.
Espy and hear holiday rentals in Lorton United States and for rent by owner homes in Lorton United States.
Perceive, hear, and perceive short term rentals in Philomont United States, Philomont home rentals, and vacation homes.
Tenants, sorority sisters, and brides go through, frisk, and ferret our website, FRBO.com and elicit convenient houseboat, private houseboat, convenient townhouse, and decadent condominium.
Recognize and discern Prince William Virginia for rent by owner homes and rental home.
See well appointed ad directories and lake indexes that rental property owners and rental property owners post on our webpage.
Volunteer, levy, and embody on Monday to open and jump into on this venture.
|
|