Ver Mensaje Individual
  #9 (permalink)  
Antiguo 26/06/2008, 07:17
Avatar de edohen
edohen
 
Fecha de Ingreso: agosto-2006
Ubicación: Bolivia
Mensajes: 181
Antigüedad: 18 años, 8 meses
Puntos: 5
Respuesta: problema con una consulta

Gracias a todos... me sirvió mucho todas las ideas al final el codigo me quedo de esta manera:
Cita:
<table border="0" cellpadding="5" cellspacing="3" bordercolor="#CCCCCC">
<%
uni=session("unidad")
cate=session("cate")
cont=1
filas=3
columnas=4
FOTOS = "select * from galeria where idunidad= '"&uni&"' and idcategoria = '"&cate&"'"
set RS2 = Conn.Execute(FOTOS)
Do While Not RS2.Eof
For f=1 To Filas
Response.Write("<tr>")
For c=1 To Columnas
if not RS2.Eof then
ladoizquierdo = RS2("thumb")
id_gal=RS2("idgaleria") %>

<td width="85" height="62" align="center"><a href="_ppopup.asp?id_gal=<% =id_gal %>" target="popup" onClick="window.open(this.href, this.target, 'width=800,height=600'); return false;"><img src="../galeria/thumb/<% Response.Write(ladoizquierdo) %>" width="75" height="56" border="0"></a></td>
<%
RS2.MoveNext
end if
Next
Response.Write("</tr>")
Next

%>
<%
'RS2.MoveNext
Loop
%>
</table>
Funciona a las mil maravillas sinceramente gracias a todos....Creo que si alguien tropieza con algun problema similar aca tiene muy buenas soluciones.

Saludos.