1个回答
展开全部
数据记录的时间=当前时间
<%
set rs = server.CreateObject("adodb.recordset")
rs.open "select * from 表 where Time like '%"&Now()&"%' order by ID desc",conn,1,1
if rs.eof and rs.bof then
response.Write "今天没有新发布"
else
do while not rs.eof
response.write "内容"
rs.movenext
loop
rs.close
set rs = nothing
end if %>
<%
set rs = server.CreateObject("adodb.recordset")
rs.open "select * from 表 where Time like '%"&Now()&"%' order by ID desc",conn,1,1
if rs.eof and rs.bof then
response.Write "今天没有新发布"
else
do while not rs.eof
response.write "内容"
rs.movenext
loop
rs.close
set rs = nothing
end if %>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询