<%
If album <> "" then
strSQL="SELECT * from photos where album=" & album & " order by sorting"
rs.Open strSQL,conn,3,1
i = 0
Do While Not rs.eof
If i Mod 2 = 0 Then
response.write "
"
End if
%>
<%=rs("caption")%>
" width="345" height="263" />
<%
If i Mod 2 = 1 Then
response.write "
"
End if
i= i+1
rs.movenext
Loop
rs.close
Set rs = nothing
conn.close
Set conn = Nothing
End if
%>