guarda per me non ci sono problemi , basta chiederlo tanto è tutto gratis anche fare spam.
codice:
<%
' dim rsestrai, zona, tipologia, immobile, mq, importo
' dim strricerca, pag, i, rowcount, cerca, pp
dim cerca, pp, sql
'estrazione della pagina corrente
pag=trim(request("pag"))
cerca=replace(Trim(request("cerca")),"'", "")
pp=cerca
if pag="" then pag=1
if IsEmpty(Request.querystring("cerca")) then
cerca = " where nomearticolo like '" & Request.querystring("cerca") & "%'order by data desc "
sql = "select * from richieste"
else
if Request.querystring("cerca")<>"" then
' cerca = " where nomearticolo like '" & cerca & "%'order by data desc"
voci = split(cerca, " ")
sql = "SELECT * FROM richieste WHERE"
for i = 0 to ubound(voci)
sql = sql & " nomearticolo LIKE '%" & voci(i) & "%'"
if i < ubound(voci) then sql = sql & " and"
next
else
cerca = " where nomearticolo like '%' order by data desc"
sql = "select * from richieste " & cerca
end if
end if
'Response.Write strricerca
'Response.End
set rsestrai=Server.CreateObject("adodb.recordset")
rsestrai.LockType=3
rsestrai.CursorType=3
rsestrai.PageSize=5
rsestrai.ActiveConnection=connessione
rsestrai.Open sql
%>
:ciauz: