|
<%@ 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
Apartment rentals in Roblin and real estate rentals Roblin Canada
Holiday rentals in Sooke Canada, Sooke Canada rental homes, and condo rentals in Sooke Canada
Big Tancook Island Canada rental properties, for rent by owner homes in Big Tancook Island Canada, vacation homes Big Tancook Island Canada, and Big Tancook Island Canada real estate rentals
House rentals and rental houses Canoe Cove
Halfmoon Bay Canada vacation rental, vacation rentals in Halfmoon Bay, and homes for rent by owner in Halfmoon Bay
Point Prim vacation homes for rent by owner, Point Prim Canada rental home, Point Prim Canada home rentals, and vacation homes in Point Prim Canada
For rent by owner homes in Golden and rent houses in Golden
Bed and breakfast rentals Bonaventure Canada, vacation homes for rent by owner Bonaventure, and for rent by owner homes in Bonaventure Canada
Edmonton Canada rental properties, Edmonton Canada houses for rent, Edmonton Canada homes for rent, and for rent by owner homes Edmonton Canada
Real estate rentals Scotch Creek and Scotch Creek Canada houses for rent
Rental houses in Edmonton Canada, short term rentals in Edmonton Canada, and for rent by owner homes Edmonton Canada
Vacation rental in North Lake Canada, North Lake Canada vacation homes, for rent by owner homes in North Lake Canada, and condos for rent in North Lake Canada
Home rentals and North Rustico for rent by owner homes
Bed and breakfast rentals in Peggy s Cove Canada, Peggy s Cove Canada short term rentals, and apartments for rent in Peggy s Cove Canada
Debunk, discern, and recognize Fort Macleod vacation rental, Fort Macleod homes for rent, and for rent by owner homes.
Espy and originate homes for rent and homes for rent in Milton Canada.
Find, ferret out, and contrive rental properties in Edys Mills Canada, rent house in Edys Mills, and Edys Mills Canada short term rentals.
Uncover and conceive homes for rent by owner Weyburn and holiday rentals Weyburn Canada.
St Sauveur des Monts property agents, real estate agents, and rental property owners list holiday rentals in St Sauveur des Monts, St Sauveur des Monts rental properties, and homes for rent by owner in St Sauveur des Monts.
St Sauveur des Monts Canada is a alluring and comely precinct with excellent and ideal home, houseboat, bungalow, and chalets.
Detect, observe, and observe the area and near-at-hand St Sauveur des Monts Canada block.
The St Sauveur des Monts listed properties invoiced and inventoried on our site, FRBO.com eliminate spacious townhouse, hillside farmhouse, resort lodge, and decadent lodge.
|
|