日期:2014-05-16 浏览次数:20658 次
<%
kr=request.form("kr")
ks=request.form("ks")
zr=request.form("zr")
zs=request.form("zs")结束时间
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("xuexiao.mdb")
exec="select jcj,count(jcj) as n from shuisheng where cdate(rq+' '+fsj) between #"&kr&" "&ks&"# and #"&zr&" "&zs&"# group by jcj order by count(*) "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,3,2
%>
<table width="673" height="160" border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<%
do while not rs.eof
%>
<tr><td bgcolor="#EBE9ED"><%=rs("jcj")%>班级有人数<%=rs("n")%>名</td>
</tr>
<%
rs.movenext
loop
%>
</table>