|
<%@ 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" %>
|
Mexico Rental Links
Home rentals and short term rentals Chicxulub Mexico
House rentals in Puerto Penasco-Rocky Point, for rent by owner homes Puerto Penasco-Rocky Point, and Puerto Penasco-Rocky Point Mexico vacation rental
Apartment rentals, rental home in La Penita Mexico, La Penita Mexico homes for rent by owner, and house rentals in La Penita Mexico
Rental houses Playa del Carmen and vacation rental
San Luis Potosi Mexico holiday rentals, short term rentals in San Luis Potosi, and apartments for rent San Luis Potosi Mexico
Catemaco Mexico house rentals, rental homes Catemaco Mexico, holiday rentals Catemaco Mexico, and Catemaco for rent by owner homes
Homes for rent in Playa Paraiso and rent houses Playa Paraiso Mexico
Vacation homes for rent by owner, vacation rental Bahia Kino-Kino Bay Mexico, and real estate rentals in Bahia Kino-Kino Bay Mexico
Rental houses in Los Frailes Mexico, Los Frailes Mexico holiday rentals, Los Frailes Mexico vacation homes for rent by owner, and Los Frailes Mexico short term rentals
Rental home in La Paloma Mexico and rent house in La Paloma Mexico
Bed and breakfast rentals Isla Mujeres, rental properties Isla Mujeres, and Isla Mujeres home rentals
San Antonio rent house, San Antonio Mexico vacation rental, vacation homes for rent by owner in San Antonio, and San Antonio Mexico condos for rent
Rent houses Melaque Mexico and Melaque vacation rental
Devise, learn, and espy rental houses in Metepec Mexico, for rent by owner homes in Metepec Mexico, and Metepec house rentals.
Kick off your exploration online tomorrow morning or on Saturday for your real estate rentals in Mexico City Mexico and Mexico City rental properties.
We set up, created, and sired our site, FRBO.com to be pretty, charming, grand, and dazzling.
Ferret out and find Caborca Mexico vacation homes and Caborca Mexico apartment rentals.
Originate and elicit Villahermosa Mexico vacation rentals and home rentals in Villahermosa Mexico.
The Mexico City Mexico oceanfront advertisements, private ads, and waterfront online MLS for these sector can be mapped.
For Rent By Owner can volunteer, hitch, and record exotic online MLS and romantic ad directories beach online MLS and loft listings to benefit your Mexico City expedition.
Using For Rent By Owner, property agents keep count castle, ranch, lodge, and cottage classifieds.
|
|