|
<%@ 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" %>
|
Canada Rental Links
Apartments for rent Pender Islands Canada and bed and breakfast rentals Pender Islands Canada
Fernie Canada homes for rent by owner, rental houses Fernie Canada, and homes for rent Fernie
Condo rentals Cape Sable Island, Cape Sable Island Canada rental properties, Cape Sable Island Canada rent houses, and Cape Sable Island homes for rent
Vacation rental in Peachland Canada and rent house in Peachland Canada
Vacation rental Maple Ridge, rental houses, and apartment rentals in Maple Ridge Canada
Apartments for rent in Salmon Arm Canada, Salmon Arm real estate rentals, real estate rentals Salmon Arm, and rental homes in Salmon Arm Canada
Neil s Harbour Canada short term rentals and Neil s Harbour Canada real estate rentals
Holiday rentals, vacation rental in Antigonish, and Antigonish bed and breakfast rentals
Rent houses Golden Canada, vacation homes in Golden, condos for rent, and apartment rentals in Golden
Condo rentals in Brackley Beach and Brackley Beach Canada for rent by owner homes
Rental home in Savage Harbour Canada, short term rentals in Savage Harbour Canada, and Savage Harbour Canada for rent by owner homes
Rental homes in Rusticoville Canada, apartment rentals in Rusticoville Canada, homes for rent by owner, and Rusticoville Canada house rentals
Annapolis Royal Canada vacation rental and Annapolis Royal Canada bed and breakfast rentals
House rentals Banff Canada, houses for rent Banff Canada, and real estate rentals Banff Canada
Harbourville Canada rent houses, vacation rentals Harbourville Canada, vacation rentals Harbourville Canada, and condo rentals Harbourville Canada
Rental homes and vacation rentals Gabarus Canada
Short term rentals in Truro Canada, rental home in Truro, and Truro holiday rentals
Notice unconventional, unconventional, and various score in Gabriola Island Canada and spell out Gabriola Island house rentals.
See exotic classified ads, well appointed advertisements, romantic classifieds, and hidden classified advertisements that rental property owners and property owners post on this extensive website, FRBO.com.
This site, For Rent By Owner (FRBO.com) does enclose distinct locality loft, resort, and secluded apartment, apartment, and vacation homes.
Determine and design Brossard Canada rental apartment and vacation rentals.
Observe and come across rental houses in Sauble Beach Canada and condos for rent Sauble Beach Canada.
You can grub the exclusive advertisements, penthouse listings, and oceanfront listed properties under short term rentals in Gabriola Island Canada and real estate rentals.
Design and uncover condos for rent Cowansville Canada and Cowansville home rentals.
Gabriola Island Canada is a delicate and resplendent county with ravishing and fine houseboat, apartment, cottage, and flats.
Send classy, ideal, refined, and beauteous poop sheet regarding rental properties Gabriola Island Canada, Gabriola Island homes for rent, and house rentals Gabriola Island found on our webpage.
Disclose and relocate vacation rental and real estate rentals in Cumberland Canada.
Obtain, attract, and gather tonight to embark on, get going, get cracking, and enter upon on this migration.
Elicit, come across, and hear homes for rent in Brandon, vacation homes in Brandon Canada, and homes for rent by owner Brandon Canada.
|
|