Base de Conocimientos - FAQs
Administración > Base de Conocimientos - FAQs > Windows > Tiene algun Script que conecte MySql y ASP en Windows?
Tiene algun Script que conecte MySql y ASP en Windows?
| Este ejemplo ha funcionado en servidores Windows 2003 con Helm, puede probarló si te sirve:
*********************************************************
<% dim conn dim conn_string
conn_string = "Driver={MySQL};Server=127.0.0.1;Port=3306;Database=test;Uid=test;Pwd=test"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open(conn_string)
strQuery = "SELECT * FROM productos" Set RS = conn.Execute(strQuery)
%>
<html> <body> <b>Resultados</b> <br><br> <%while not RS.eof%> <%=RS("nombre")%> <%=RS("precio")%><br> <%RS.MoveNext%> <%wend%>
</body> </html>
***********************************************************
|
Agregar a Favoritos
Imprimir éste Artículo
|
Leer también