Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/08/2002, 19:59
Avatar de CHuLoSoY
CHuLoSoY
 
Fecha de Ingreso: febrero-2002
Ubicación: Ribeira (Galicia)
Mensajes: 1.900
Antigüedad: 23 años, 3 meses
Puntos: 29
Re: Como hacer la Conexion de BD con BRINKSTER

Hola:

Código:
<%
Set con = Server.CreateObject("ADODB.Connection")
Con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("loquesea.mdb"))
sql = "SELECT * FROM Tabladelabd"
set result = Con.Execute(sql)
%>
Mostrar resultados:

Código:
<%=result("campo")%>
Ejemplo claro:

Código:
<%
Set con = Server.CreateObject("ADODB.Connection")
Con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("noticias.mdb"))
sql = "SELECT * FROM Noticias"
set result = Con.Execute(sql)
%>
<html>
<head>
<title>Noticias</title>
</head>
<body>
<p><font face="Arial" size="5" color="#0080C0"><%=result("titulo")%></font><br>
<font face="Arial" size="2"><strong><%=result("copete")%></strong></font></p>
<p><font face="Arial" size="2"><%=result("noticia")%></font></p>
<p><font face="Arial" size="2">Categoría: <b><%=result("categoria")%></font></b></p>
</body>
</html>
saludos.

<center><hr size="1" color="blue" width="39%"><a href="http://www.ommadawn.es.vg" target="_blank"><font color="red">www.Ommadawn.es.vg[/CODE]</a><hr size="1" color="blue" width="39%">