Hi any body tell me where is the problem ?
i'm trying 2 search but desnt' come with nothing plz help me in this regards
[HTML]
chkres = Request.form("c hkres")
chkcom = Request.form("c hkcom")
chkoth = Request.form("c hkoth")
if chkres = "yes" then
chkres = "Residentia l"
end if
if chkcom = "yes" then
chkcom = "Commercial "
end if
if chkoth = "yes" then
chkoth = "Others"
end if
strText = cstr(Request.fo rm("strText"))
strText = uCase(strText)
chkprc1 = Request.form("c hkprc1")
intPrice = Request.form("i ntPrice")
intPricem = Request.form("i ntPricem")
bedrooms = Request.form("b edrooms")
strTextWhere = ""
intPriceWhere = ""
stroptWhere = ""
strTextWhere = " and (uCase(db_city) like '%"&strText&"%' "
strTextWhere = strTextWhere & " or uCase(db_town) like '%"_
& strText & "%')"
intPriceWhere = " and Price > " & intPrice & " and Price<" & intPricem
stroptWhere = " and property.catego ry_ID = '" &chkopt&"'"
set Conn = Server.CreateOb ject("ADODB.Con nection")
Conn.Open ConString
sqlText = "select distinct(Proper ty.Property_ID) , "
sqlText = sqlText & "Property.Descr iption ,"
sqlText = sqlText & "Property.P rice ,"
sqlText = sqlText & "Property.S tyle ,"
sqlText = sqlText & "Property.B eds ,"
sqlText = sqlText & "Property.addre ss ,"
sqlText = sqlText & "Property.o ffer ,"
sqlText = sqlText & "Property.Image _1 ,"
sqlText = sqlText & "Property.T ype "
sqlText = sqlText & "from Property "
sqlText = sqlText & "where Property.Proper ty_ID = "
sqlText = sqlText & "Property.Prope rty_ID"
sqlText = sqlText & strTextWhere & stroptWhere & intPriceWhere
[/HTML]
i'm trying 2 search but desnt' come with nothing plz help me in this regards
[HTML]
chkres = Request.form("c hkres")
chkcom = Request.form("c hkcom")
chkoth = Request.form("c hkoth")
if chkres = "yes" then
chkres = "Residentia l"
end if
if chkcom = "yes" then
chkcom = "Commercial "
end if
if chkoth = "yes" then
chkoth = "Others"
end if
strText = cstr(Request.fo rm("strText"))
strText = uCase(strText)
chkprc1 = Request.form("c hkprc1")
intPrice = Request.form("i ntPrice")
intPricem = Request.form("i ntPricem")
bedrooms = Request.form("b edrooms")
strTextWhere = ""
intPriceWhere = ""
stroptWhere = ""
strTextWhere = " and (uCase(db_city) like '%"&strText&"%' "
strTextWhere = strTextWhere & " or uCase(db_town) like '%"_
& strText & "%')"
intPriceWhere = " and Price > " & intPrice & " and Price<" & intPricem
stroptWhere = " and property.catego ry_ID = '" &chkopt&"'"
set Conn = Server.CreateOb ject("ADODB.Con nection")
Conn.Open ConString
sqlText = "select distinct(Proper ty.Property_ID) , "
sqlText = sqlText & "Property.Descr iption ,"
sqlText = sqlText & "Property.P rice ,"
sqlText = sqlText & "Property.S tyle ,"
sqlText = sqlText & "Property.B eds ,"
sqlText = sqlText & "Property.addre ss ,"
sqlText = sqlText & "Property.o ffer ,"
sqlText = sqlText & "Property.Image _1 ,"
sqlText = sqlText & "Property.T ype "
sqlText = sqlText & "from Property "
sqlText = sqlText & "where Property.Proper ty_ID = "
sqlText = sqlText & "Property.Prope rty_ID"
sqlText = sqlText & strTextWhere & stroptWhere & intPriceWhere
[/HTML]
Comment