Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/01/2005, 10:58
Avatar de Stickmaster2004
Stickmaster2004
 
Fecha de Ingreso: septiembre-2004
Ubicación: Barranquilla
Mensajes: 568
Antigüedad: 20 años, 9 meses
Puntos: 0
si asi es con RS

ES EL OBJETO RECORSET QUE TE PERMITE TOMAR LOS CAMPOS DE LA TABLA DE LA BASE DE DATOS ASI:

<%
Dim calma,m


Set calma = Server.CreateObject("ADODB.Connection")
set m=Server.CreateObject("ADODB.Recordset")
calma.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};Server=127.0.0.1;uid=root;DataBase=datos1"
calma.Open

SQL="select distinct(p.pais) FROM paises p,usuario u where p.pais=u.paises and u.codigo=" & a
Set m = calma.Execute(SQL)


'Generamos el menu desplegable
Do while (not m.Eof) %>
<input type= "text" name=pais disabled size=20
<% Response.Write("value='" + m("pais") + "'>")
%>

<% m.MoveNext

Loop
calma.Close
set m = nothing
set calma = nothing

%>
__________________
Solo el que se basa en conocimiento basico y cultiva el aprendizaje obtendra sabiduria