Ciao a tutti.
Come dice il subject dovrei scorrere delle immagini con due cursori (precedente e successiva), ma con un vincolo: la prima immagine visualizzata viene trovata attraverso l'id che passo alla procedura e con i cursori mi devo muovere tra le immagini appartenenti alla categoria di appartenenza.
Il codice che vi posto so già che è sbagliato, ma il principio è che vorrei associare ai due href finali un'azione movenext e moveprevious.

Qualcuno può darmi una mano ?



<%

id=Request("id")
category=Request("category")
dim url_DB
url_DB = "driver={Microsoft Access Driver (*.mdb)};dbq=" & server.mappath(percorsoDB)
dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open url_DB
Set RS = Server.CreateObject("ADODB.Recordset")
SQL = "SELECT * FROM Foto Where ID = " & id &" and categoria = '" & category & "' "
RS.Open sql, Conn, adOpenStatic, adLockOptimistic

if not RS.eof then
pathFoto=percorsoPhoto&"Foto_"&Cstr(RS("id"))&".jp g"
Dim objFSO
Set objFSO=server.CreateObject("scripting.filesystemob ject")
%>
<table >
<tr>
<td>[img]<%=pathFoto%>[/img]</td>
</tr>
</table>
<table>
<tr>
<td ><div id="menuFoto">
[ < ]
[ > ]
</td>
</div>
</tr>
</table>



<%
set objFSO=nothing
end if
%>
</body>
</html>