Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/02/2002, 15:29
Avatar de mrgubu
mrgubu
 
Fecha de Ingreso: febrero-2002
Ubicación: Granada
Mensajes: 431
Antigüedad: 23 años, 2 meses
Puntos: 2
no sale lo que quiero que salga

Intento crear un periódico local online en asp. Tengo una base de datos con dos campos, idnoticia (id) y noticia (memo). Al hacer click en el vínculo de la página de inicio(tipo "noticias.asp?id=1") me salen todas las noticias seguidas en vez de salirme una sola. ¿Podéis ayudarme??? :(

Este es el código de noticias.asp:

<%
id=request.querystring("id")

Set oConn = Server.CreateObject("ADODB.Connection")

oConn.Open = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& Server.MapPath("./noticias3.mdb")

Set ors = Server.CreateObject("ADODB.RecordSet")

sql = "SELECT * FROM tabla1"

ors.Open sql, oConn%>
<table>
<tr>
<td width="100%">
<%do while not ors.eof%>

<%=ors.fields("noticia")%>

<%ors.movenext
loop%>
</td>
</tr>
</table>