| home > search
listings >
results |
||
| Listings Results | ||
" & "Try Again
" else if city = 1 then if request.queryString("keyword") <> "" then listingsQuery = "SELECT owner,id,photo,photo1,photo2,price,for_rent,for_lease,soldstatus,city,address,proptype,reduced,development,highlightphrase,comments1 FROM listings WHERE for_rent <> 1 and (status='' or status is null) and ( description like '%"& replace(request.queryString("keyword"),"'","''")&"%' or highlightphrase like '%"& replace(request.queryString("keyword"),"'","''")&"%' or address like '%"& replace(request.queryString("keyword"),"'","''")&"%') " & vWaterfront & virtualtourspart & " and city in" & showCity & "and price >= "&request.queryString("range")& " and price <="& request.queryString("range2") & " and owner<>'cove' and owner<>'vattoy' and realtorid not in "&bannedid&" and soldstatus = 0 and datelisted > '"&mysqlDate(thedate)&"' and prov='BC' ORDER BY price" else listingsQuery = "SELECT owner,id,photo,photo1,photo2,price,for_rent,for_lease,city,soldstatus,address,proptype,reduced,development,highlightphrase,comments1 FROM listings WHERE for_rent <> 1 and (status='' or status is null) and city in" & showCity & vWaterfront & virtualtourspart & " and price >= "&request.queryString("range")& " and price <="& request.queryString("range2") & " and owner<>'cove' and owner<>'vattoy' and realtorid not in "&bannedid&" and soldstatus = 0 and datelisted > '"&mysqlDate(thedate)&"' and prov='BC' ORDER BY price" end if end if if proptype = 1 then if request.queryString("keyword") <> "" then listingsQuery = "SELECT owner,id,photo,photo1,photo2,price,for_rent,for_lease,soldstatus,city,address,proptype,reduced,development,highlightphrase,comments1 FROM listings WHERE for_rent <> 1 and (status='' or status is null) and proptype in" & showproptype &" and ( description like '%"& replace(request.queryString("keyword"),"'","''")&"%' or highlightphrase like '%"& replace(request.queryString("keyword"),"'","''")&"%' or address like '%"& replace(request.queryString("keyword"),"'","''")&"%') " & vWaterfront & virtualtourspart &" and price >= "&request.queryString("range")& " and price <="& request.queryString("range2") & " and owner<>'cove' and owner<>'vattoy' and realtorid not in "&bannedid&" and soldstatus = 0 and datelisted > '"&mysqlDate(thedate)&"' and prov='BC' ORDER BY price" else listingsQuery = "SELECT owner,id,photo,photo1,photo2,price,for_rent,for_lease,soldstatus,city,address,proptype,reduced,development,highlightphrase,comments1 FROM listings WHERE for_rent <> 1 and (status='' or status is null) and proptype in" & showproptype &"and price >= "&request.queryString("range")& vWaterfront & virtualtourspart & " and price <="& request.queryString("range2") & " and realtorid not in "&bannedid&" and owner<>'cove' and owner<>'vattoy' and soldstatus = 0 and datelisted > '"&mysqlDate(thedate)&"' and prov='BC' ORDER BY price" end if end if if city = 1 and proptype = 1 then if request.queryString("keyword") <> "" then listingsQuery = "SELECT owner,id,photo,photo1,photo2,price,for_rent,for_lease,soldstatus,city,address,proptype,reduced,development,highlightphrase,comments1 FROM listings WHERE for_rent <> 1 and (status='' or status is null) and city in" & showCity & "and proptype in" & showproptype & " and ( description like '%"& replace(request.queryString("keyword"),"'","''")&"%' or highlightphrase like '%"& replace(request.queryString("keyword"),"'","''")&"%' or address like '%"& replace(request.queryString("keyword"),"'","''")&"%') "& vWaterfront & virtualtourspart &" and price >= "&request.queryString("range")& " and price <="& request.queryString("range2") & " and realtorid not in "&bannedid&" and owner<>'cove' and owner<>'vattoy' and soldstatus = 0 and datelisted > '"&mysqlDate(thedate)&"' and prov='BC' ORDER BY price" else listingsQuery = "SELECT owner,id,photo,photo1,photo2,price,for_rent,for_lease,soldstatus,city,address,proptype,reduced,development,highlightphrase,comments1 FROM listings WHERE (status='' or status is null) and city in" & showCity & "and proptype in" & showproptype & "and price >= "&request.queryString("range")& vWaterfront & virtualtourspart &" and price <="& request.queryString("range2") & " and realtorid not in "&bannedid&" and owner<>'cove' and owner<>'vattoy' and soldstatus = 0 " & forrentpart &" and datelisted > '"&mysqlDate(thedate)&"' and prov='BC' ORDER BY price" end if end if rsListings.open listingsQuery, conn, adOpenstatic, adLockReadonly, adCmdtext totalRecords = rsListings.recordCount %>| | Results: <%= nextRecoNum %>-<%= lastRecoOnPage %> of <%= totalRecords %> |
| << previous results | <% else %><< previous results |
<% end if %>
<%= nextRecoNum - count %>-<%= lastRecoOnPage %>
of
<%= totalrecords %> results
|
<% if int(curPage) < totalPages then %>
<% else %> |
next results >>
|
<% end if %>