
02/01/2003, 08:03
|
 | | | Fecha de Ingreso: diciembre-2002 Ubicación: Barcelona
Mensajes: 127
Antigüedad: 22 años, 4 meses Puntos: 0 | |
El código que te di es precisamente para no tener que conocer la fecha, que lo haga automático.
Por tanto...
Código:
strSQLHoy = "SELECT ID, ARCHIVO, FECHA, IMAGEN, TEMA,
HORA FROM NEWS ORDER BY HORA, FECHA DESC;"
<%
Set MyRecordSet = MyConn.Execute(strSQLHoy)
'le faltaba esta línea, porque sino txtfechalast siempre será distinto.
txtFechaLast = MyRecordset("FECHA")
Do while not MyRecordset.EOF
If txtFechaLast <> MyRecordset("FECHA") then
exit do
end if
%>
<!-- codigo html -->
<%
txtFechaLast = MyRecordset("FECHA")
myrecordset.movenext
loop
myrecordset.close
%>
__________________ on error... resume next |