|
<%@ 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" %>
|
Pennsylvania Rental Links
Rental homes in Elizabeth and rental homes Elizabeth Pennsylvania
Scranton vacation homes, houses for rent Scranton, and real estate rentals in Scranton
Hanover Pennsylvania short term rentals, condos for rent, for rent by owner homes in Hanover Pennsylvania, and apartments for rent in Hanover Pennsylvania
Rental properties and vacation rental in Doylestown Pennsylvania
Homes for rent in Springettsbury Pennsylvania, real estate rentals Springettsbury Pennsylvania, and rental apartment in Springettsbury Pennsylvania
House rentals in North Whitehall Pennsylvania, real estate rentals North Whitehall, vacation homes in North Whitehall Pennsylvania, and rental properties in North Whitehall Pennsylvania
Upper Macungie rental apartment and apartment rentals Upper Macungie
Rental properties Upper Dublin Pennsylvania, short term rentals Upper Dublin, and rental apartment
Butler Pennsylvania homes for rent, Butler bed and breakfast rentals, Butler homes for rent by owner, and rental homes in Butler
Rental home in Franconia Pennsylvania and Franconia rental apartment
Holiday rentals in York, home rentals York, and houses for rent York Pennsylvania
Holiday rentals in Carlisle Pennsylvania, rental homes Carlisle Pennsylvania, Carlisle Pennsylvania vacation rentals, and vacation rentals Carlisle Pennsylvania
Upper Saucon Pennsylvania memorandums could work for and benefit your pursual.
Devise, recognize, and notice vacation homes for rent by owner in Northampton Pennsylvania and Northampton Pennsylvania real estate rentals.
You can perceive and ascertain homes for rent by owner in Upper Saucon Pennsylvania and short term rentals.
Notice and perceive house rentals Berks, Berks Pennsylvania homes for rent by owner, rental houses in Berks Pennsylvania, and homes for rent in Berks.
Exclusive lists of marked properties and romantic classifieds Centre Pennsylvania houses for rent, bed and breakfast rentals in Centre Pennsylvania, Centre vacation homes, and for rent by owner homes.
Colleagues, comrades, and tenants who are wishing to discern and ascertain or simply espy information can use our for rent by owner website.
Debunk and catch houses for rent in Wallingford United States and Wallingford condos for rent.
Design and originate homes for rent by owner in Chadds Ford and apartment rentals Chadds Ford.
Intermittently, plug, further, and work for your subordinates and adventurers to a crowded, okay, thundering, and selling township.
Identify and dig up New Albany United States rental apartment and rent houses in New Albany United States.
This site, FRBO.com does comprehend individual studio, beachfront, and log castle, condominium, and ranchs.
|
|