Salve a tutti...
ki mi può aiutare??? :-)
in questa pagina voglio far comparire delle foto... piccole... e quando vengono clikkate si ingrandiscono...
nella pagina non mi dà nessun errore... semplicemente mi fà vedere tutto fino al primo rs.Close
sono 3 giorni ke ci sbatto la testa... sarà si sikuro una stupidata... però io non capisco quale!
Se potete aiutatemi grazie!!
codice:
<%dim conn,rs
set conn = server.CreateObject("ADODB.connection")
conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath("/mdb-database/foto.mdb")
set rs = server.CreateObject("ADODB.recordset")
%>
<%dim a,azione
a = Request.QueryString("id")
azione = Request.QueryString("azione")
if a = "" thenrs.Open "SELECT * FROM foto1" , conn,3,3
%>
<TABLE style="WIDTH: 180px; HEIGHT: 142px" cellSpacing=1 cellPadding=1 width=180 border=0 align=center>
<tr>
<%do while not rs.EOF%>
<td>&azione=apri">[img]<%=rs([/img]">
<p align=center><font color=red><%=rs.Fields("nomi").Value%></font></p></td>
<%
rs.MoveNext
loop
else
%>
<%if azione = "apri" then%>
<%rs.Open "SELECT * FROM foto1 WHERE ID=" & cint(a) , conn%>
<td>[img]<%=rs([/img]"></td>
</tr>
</table>
<%End If%>
<%rs.Close%>
<%rs.Open "SELECT * FROM kombat" , conn,3,3%>
<TABLE style="WIDTH: 130px; HEIGHT: 142px" cellSpacing=1 cellPadding=1 width=180 border=0 align=center>
<tr>
<td><p align=center><font color=red><%=rs.Fields("nome").Value%>
[img]<%=rs([/img]"></font></p></td>
</tr>
</table>
<P align=center><FONT color=red size=6>... Durante il Lungo Tragitto ...</FONT></P>
<%rs.Close%>
<%rs.Open "SELECT * FROM davi" , conn,3,3%>
<%do while not rs.EOF%>
<TABLE style="WIDTH: 160px; HEIGHT: 142px" cellSpacing=1 cellPadding=1 width=180 border=0 align=center>
<tr>
<td><p align=center><font color=red size=5><%=rs.Fields("nome").Value%>
&azione=apridavi">[img]<%=rs([/img]"></font></p></td>
</tr><tr><td>
</td></tr>
<%rs.MoveNext
loop%>
<%if azione = "apridavi" then%>
<%rs.Open "SELECT * FROM davi WHERE ID=" & cint(a) , conn%>
<tr>
<td>[img]<%=rs([/img]"></td>
</tr>
</table>
<P align=center><FONT color=red size=6>... E Finalmente Si Arriva ...</FONT></P>
<%rs.Close%>
<%rs.Open "SELECT * FROM scritta" , conn,3,3%>
<TABLE style="WIDTH: 130px; HEIGHT: 142px" cellSpacing=1 cellPadding=1 width=180 border=0 align=center>
<tr>
<td>[img]<%=rs([/img]"></font></p></td>
</tr>
</table>
<P align=center><FONT color=red size=5>... Kontinua ...</FONT></P>
<p align=center>
</p>
<%End If%>
<%End If%>
</body>
</HTML>