Ver Mensaje Individual
  #12 (permalink)  
Antiguo 07/05/2002, 09:35
Avatar de DARIOI
DARIOI
 
Fecha de Ingreso: mayo-2001
Ubicación: Gotland-Visvy
Mensajes: 181
Antigüedad: 24 años
Puntos: 0
Re: Sistema de noticias!

PASO CUATRO CREA ESTA ASP:
<%
Set con = Server.CreateObject("ADODB.Connection")
Con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Da ta Source=" & _
Server.MapPath("noticias.mdb"))
sql = "SELECT * FROM Noticias WHERE id=" & Request.QueryString("id") & ""

'Ejecuta un sentencia SQL de consulta
'Recorre todas las filas del resultado
set result = Con.Execute(sql)
%>
<html>
<head>
<title>Página nueva </title>
</head>
<body>
<p><font face="Arial" size="5" color="#0080C0"><%=result("ti tulo")%></font></p>
<p><font face="Arial" size="2"><strong><%=result(& quot;copete")%></strong></font></p>
<p><font face="Arial" size="2"><%=result("noticia&q uot;)%></font></p>
</body>
</html>