Tema: variables
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/05/2004, 02:18
Kalamor
 
Fecha de Ingreso: septiembre-2002
Ubicación: Bangui
Mensajes: 58
Antigüedad: 22 años, 7 meses
Puntos: 0
Hombre, pues tienes que crear un recordset que recorra los campos de la Base de Datos:

Set rsFotos = Server.CreateObject("ADODB.Recordset")

despues la sentencia SQL:
strSQL = "SELECT id (CampoAutonumerico),Campo2 FROM Tabla"
rsFotos.CursorType = 3
rsFotos.Open strSQL, miConexion

Despues, con un bucle pones todas la fotos

<%While Not rsFotos.Eof%>

<a href="javascript:window.open('ver1.asp?var='<%=rsFotos("id")%>','popup','toolbar=no,scrollbars=yes,location=no ,
status=no,resizable=yes,width=650, height=550,top=0,left=0')"><img src='/imagenes/<%=rsFotos("Campo2")%> ' width='580px' heigth='500px'><br><br></a>

<%rsFotos.MoveNext
Wend %>
__________________
Nuestros sueños seguiran infectando vuestras hipocresias