Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2003, 22:25
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 22 años
Puntos: 5
hola... espero este ejemplo te ayude... es bastante sencillo pero tiene lo que necesitas

<%
Set Master = Server.CreateObject("ADODB.Connection")
Master.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("db/datos.mdb"))

sSQL = "select * from usuarios order by usuario"
set RS = Master.Execute(sSQL)

sColor = "999999"

while not RS.eof
If sColor = "999999" Then
sColor = "ffffff"
Else
sColor = "999999"
End If

%>

<table width="600" border="0" cellspacing="1" cellpadding="1">
<tr>

<td bgcolor="<%=(sColor)%>"><%=(RS.fields("usuario").v alue)%></td>
</tr>
</table>
<%
RS.movenext
wend
%>
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.