Con questo codice recupero dei dati nel db e li scrivo a schermo....
strSQL2 = "SELECT * FROM immagini where giorno_agenda = " & i & " and mese_agenda = " & m & " and anno_agenda = "& a & " ORDER BY id DESC"
Set objRS2 = Server.CreateObject("ADODB.Recordset")
objRS2.Open strSQL2, objConn
if not objrs2.eof then
do while not objrs2.eof
Response.Write "<font face='Verdana' size='2'>[img]"&url&"/03.gif[/img] " & objrs2 ("titolo") & "</font>"
Response.Write "
"
objrs2.movenext
loop
else
Response.Write ""
end if
objrs2.close
alla fine del record faccio:
Response.Write "
"
però vorrei fare in modo che se il record che analizzo è l'ultimo del ciclo ... scriva questo:
Response.Write "
"
è possibile?

Rispondi quotando
