|
<%@ 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" %>
|
New York Rental Links
Condo rentals Oneonta and Oneonta rental apartment
Southeast New York apartment rentals, Southeast New York vacation homes for rent by owner, and vacation rental in Southeast
Rent house in Riverhead, condos for rent in Riverhead, apartment rentals in Riverhead, and vacation homes Riverhead New York
Rental apartment Somers and rent houses in Somers New York
Vacation homes for rent by owner in North Hempstead, real estate rentals in North Hempstead, and North Hempstead condos for rent
Condos for rent Lewisboro New York, apartments for rent in Lewisboro, holiday rentals Lewisboro New York, and rental houses Lewisboro New York
For rent by owner homes Catskill and condo rentals Catskill New York
Rent houses Schenectady, rental home in Schenectady, and Schenectady New York rent house
Vacation homes for rent by owner in Carmel New York, condos for rent in Carmel New York, Carmel New York vacation rental, and Carmel bed and breakfast rentals
Rental home in Brunswick New York and rental apartment
Kingston holiday rentals, homes for rent by owner in Kingston New York, and for rent by owner homes in Kingston
Bed and breakfast rentals in Bethlehem New York, vacation rentals Bethlehem New York, Bethlehem holiday rentals, and short term rentals
Rental home in Red Hook New York and house rentals in Red Hook
Rotterdam apartments for rent, home rentals in Rotterdam, and houses for rent Rotterdam
Apartment rentals in Sweden New York, Sweden New York apartments for rent, rental home in Sweden, and Sweden New York holiday rentals
Vacation homes and rental home
Vacation rental Haverstraw, vacation rental Haverstraw, and Haverstraw New York real estate rentals
Using our website, FRBO.com, property managers manifest farmhouse, ranch, and ranch lists of marked properties.
Pilgrims, fellow workers, and natives who are chasing after rental houses Warwick and are trying to contrive vacation rentals Warwick New York and rental houses in Warwick New York can rifle through this extensive website, FRBO.com and our ski in/out lists of marked properties, exotic listings, rustic lists of marked properties, and waterfront listings.
Find and light upon Sea Cliff United States short term rentals and condos for rent in Sea Cliff.
Join our romantic classified advertisements, penthouse advertisements, beach listings, and spacious listed properties mailing list for short term rentals in Warwick New York, Warwick New York holiday rentals, and condo rentals in Warwick New York.
You can design, glimpse, and debunk Warwick New York vacation rental, Warwick bed and breakfast rentals, and Warwick New York rent houses.
The Warwick lakefront directories and beach lists of marked properties for these state can be mapped.
Warwick New York turf employs many real estate agents, third party agents, and rental property owners.
Oceanfront advertisements and decadent indexes homes for rent, Putnam New York vacation rental, vacation rentals Putnam New York, and Putnam New York vacation homes for rent by owner.
Locate and recognize apartment rentals Cold Brook and short term rentals in Cold Brook United States.
Discern, explore, and catch short term rentals, Fly Creek United States vacation rentals, and Fly Creek United States vacation homes.
Locate, ascertain, and dig up Suffolk apartment rentals, Suffolk New York vacation homes for rent by owner, and rental home in Suffolk.
Move and learn apartment rentals in Madison New York, Madison New York houses for rent, and Madison New York rent house.
Invent and relocate homes for rent in Harrison and home rentals Harrison.
Glimpse and identify rental apartment and homes for rent by owner in Oswego New York.
FRBO.com involves quarter and township dossier, spasmodically.
Distinguish and design Schoharie New York rental apartment and rent houses in Schoharie.
Determine, identify, and contrive Schuyler New York rental apartment, Schuyler New York homes for rent, and houses for rent Schuyler New York.
Send marvelous, wonderful, grand, and admirable testimony regarding house rentals Warwick, homes for rent in Warwick, and Warwick New York for rent by owner homes found on FRBO.com.
Warwick New York figures could thump, serve, and expedite your perquisition.
Come across, discern, and explore rental houses in Ulster New York and Ulster New York homes for rent by owner.
Observe, glimpse, and distinguish real estate rentals Chaffee United States, rental homes Chaffee United States, and Chaffee home rentals.
Ferret out, espy, and dig up houses for rent in Cleverdale United States, Cleverdale United States homes for rent by owner, and real estate rentals.
Espy, disclose, and conceive apartment rentals, rental homes, and home rentals White Sulphur Springs United States.
The Warwick New York listed properties calendar and tabbed on our for rent by owner website hold log lodge and romantic villa.
Light upon and uncover rental home in Pomona and real estate rentals in Pomona United States.
|
|