SQL - como rescatar datos

 
Vista:

como rescatar datos

Publicado por juan soto sepulveda (2 intervenciones) el 10/05/2001 16:34:56
hola, yo quiero rescatar los datos de una <select>(menu de cascada)
y dejarlos en un tabla
<TR>
<TD> </TD>
<TD> </TD>
</TR>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:como rescatar datos

Publicado por AndreX (14 intervenciones) el 10/05/2001 18:53:14
esto esta con VBscript y html

<%@ LANGUAGE=VBScript %>

<%
tuDSN="DSN=dsn_a_datos;UID=tu_usuario;PWD=tu_password"
Set cn = server.CreateObject("ADODB.Connection")
cn.open tuDSN
tuSQL="SELECT nombre, edad, ciudad FROM tu_tabla"
set rs=server.CreateObject("ADODB.RecordSet")
Set rs=cn.Execute(tuSQL)
%>

<table border="1" width="100%">
<tr>
<td width="50%">Nombre</td>
<%do while not rs.eof %>
<td width="50%"><%=rs("Nombre")%></td>
<% rs.movenext%>
<%loop%>
</tr>

<%
cn.close
cn=nothing
rs=nothing
%>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar