Ciao a tutti sto creando un motore di ricerca con access.
Il problema è questo : tale motore dovrebbe prendere prima l'immagine memorizzata nel database e subito sotto dovrebbe fornire l'url associato all'immagine per scaricare lo zip.
In pratica io dovrei visualizzare un immagine e il relativo file zip ma come fare?
Ecco come ho iniziato vi posto il codice ma è sbagliato :
<%
Dim Cerca
Cerca = Replace(Request.Form("search"), "'", "")
if Cerca = "" then
Response.write "Errore. Non hai inserito nessun termine da cercare"
Response.end
end if

Dim DbPath, Conn
DbPath="/mdb-database/miodb.mdb"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(DbPath)

Dim strSQL, Rs
strSQL = "Select * from RICERCA where images like '%" & Cerca & "%' or url like '%" & Cerca & "%' order by ID desc"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open strSQL, Conn, 3, 3

if Rs.EOF then
Response.write "Nessun risultato trovato!"
else
Do while NOT Rs.EOF
Response.write "" & Rs("url") & "
" & "

"
Rs.MoveNext
Loop
End If

Rs.close
Set Rs = Nothing
Conn.close
Set Conn = Nothing