a fare la connessione penso che ci sia riuscito, infatti quando vado a scrivere ex. 0/0023 mi da non ci sono risultati ma quando scrivo 1/0032 mi esce questo errore :
------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
/0016/test/IT/test.asp, line 14
------------------------------------------------------------
la linea 14 e:
rs.Open "SELECT * FROM INDICE WHERE ID_Z3 = " & primadelloslash & " AND Z56 = " & dopoloslash, cn, 1
---------------------
ora il file e:
-------------------------
<%@ LANGUAGE = "VBScript" %>
<%
Dim camporicerca, arrayslash, primadelloslash, dopoloslash, sc, cn, rs
sc = "driver={Microsoft Access Driver (*.mdb)};dbq="
Set cn = Server.CreateObject("ADODB.Connection")
cn.Open sc & Server.MapPath("/db21.mdb")
Set rs = Server.CreateObject("ADODB.Recordset")
camporicerca = Request("riferimento")
arrayslash = Split(camporicerca, "/")
primadelloslash = arrayslash(0)
dopoloslash = arrayslash(1)
rs.Open "SELECT * FROM INDICE WHERE ID_Z3 = " & primadelloslash & " AND Z56 = " & dopoloslash, cn, 1
If rs.EOF Then
Response.Write "NON CI SONO DATI"
Else
%>
<table>
<%
While rs.EOF = False
%>
<tr>
<td><%=rs("Z4")%></td>
<td><%=rs("Z5")%></td>
<td><%=rs("Z6")%></td>
</tr>
<%
rs.MoveNext
Wend
%>
</table>
<%
End If
rs.Close
%>