webForumDet fria alternativet

Sökmotor med tillägg

ASP

2 svar · 226 visningar · startad av Lazerzubb

Medlem sedan mars 2000542 inlägg
Frågan#1

Jag har en sökmotor KODEN
//
<!-- #include virtual="/land/adovbs.stm" -->
<% Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=D:/clients/xxx/wwwroot/databas/search.mdb"
If Request.Form("fsearch") <> "" Then
SQL = "SELECT * From search1 WHERE country LIKE '" & Request.Form("fsearch")& "%' OR province LIKE '" & Request.Form("fsearch")& "%'OR city LIKE '" & Request.Form("fsearch")& "%'"
set rs=Connect.Execute(SQL)

if not rs.eof then
do until rs.eof
%><a href="detail.asp?id=<%=rs("ID")%>"><%=rs("country")%>, <%=rs("province")%> <%=rs("city")%> </a><br><%=rs("bedf")%> Fullsize bed's,  <%=rs("xbed")%> Extra bed's<br>
Price High: <%=rs("high")%>, Low: <%=rs("low")%><br><BR>
<%rs.movenext
loop
end if
else
%>Dident find any house's in the country/City<%
end if

rs.close
set rs=Nothing
Connect.close
set connect=nothing

%>
//
men jag vill att man ska typ kunna söka
Sverige +Lund
Bara med + Inget annat.

------------------
Lazerzubb

Medlem sedan dec. 19996 721 inlägg
Medlem sedan okt. 20001 558 inlägg
#3

Fan emission, den rockar ju fett :)

Lazerzubb >>

Dident find any house's in the country

Borde det inte stå Didn't :q

------------------
"I have to return some video tapes" - Patrick Bateman, American Psycho

[Redigerat av Rossifumi den 09 apr 2001]

270 ms totalt · 4 externa anrop · v20260731065814-full.86ec41c2
138 ms — deklarationer (db)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)
137 ms — ändringar (db)