现在是一个表呀 以前在ASP会实现 for i=1 to 要抽的题数 sql="select * from exam_database where and type='单选题'" set rs=server.createobject("adodb.recordset") rs.open sql,conn,3,2 count=rs.recordcount temp=fix(count*rnd) if not rs.eof and not rs.bof then rs.movefirst rs.move temp现在不知道怎么做,请大家看看
select 题号 from 表 where type=单选
要不然,你就弄两个表,,一个放单选题,,一个放多选题
如果我设计我会设为两个表,这个问题和投票系统设计无什么区别!!Table1
ID1 Title1 TypeTable2
ID2 ID1 Title2
以前在ASP会实现
for i=1 to 要抽的题数
sql="select * from exam_database where and type='单选题'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
count=rs.recordcount
temp=fix(count*rnd)
if not rs.eof and not rs.bof then
rs.movefirst
rs.move temp现在不知道怎么做,请大家看看