%
iprod = request.querystring("prod")
SQL = "Select * from tb_produtos where tb_produtos.id_produtos = " & iprod
set objProd = Conexao.Execute(SQL)
SQL = "Select * from tb_fotos where tb_fotos.produto = " & iprod
set objFoto = Conexao.Execute(SQL)
If Not objFoto.EOF Then
Do while Not objFoto.EOF
strFotos = strFotos&""",""imagens/produtos/"&objFoto("foto")&""",""imagens/produtos/"&objFoto("foto_gr")
objFoto.MoveNext
Loop
objFoto.MoveFirst
strFotos = Right(strFotos,(Len(strFotos)-2))&""""
End If
%>
<% If objFoto.EOF Then %>
|
<% Else %>
<% If objFoto("foto_gr") <> "" Then %>
" border="0" name="myPicture" alt="Slideshow" />
<% Else %>

" name="myPicture" alt="Slideshow" />
<% End If %>
<% ObjFoto.movenext
If not objFoto.EOF Then
%>
<% End If %>
<% End If %>