asp啊 VBvscript <% numyue=month(date()) numri=day(date()) sql="select * from sj where yue="+numyue+" and ri ="+numri Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,1 do while not rs.eof %><%=rs("sj")%> <%rs.movenext loop rs.close%>
<% numyue=month(date()) numri=day(date()) sql="select * from sj where yue="&numyue&" and ri ="&numri Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,3 do while not rs.eof rs("sj") rs.movenext() loop rs.close %> 试试这个...