宁波远洋怎么样:<%=getAllCountBuy(0,2)%>中始终显示为0

来源:百度文库 编辑:高考问答 时间:2022/12/07 01:04:25
sqlb = "select count(*) from bytesoft_gqinfo where gqinfo_delete = false and gqinfo_date = "&date()&stra&strb
<%=getAllCountBuy(0,2)%>中始终显示为0

原代码是
function getToDayCountBuy(class_no,gqinfo_type)
set rsb=server.createobject("adodb.recordset")
if cint(gqinfo_type)<>0 then stra = " and gqinfo_type="&cint(gqinfo_type)
if cint(class_no)<>0 then strb = " and class_no="&cint(class_no)
sqlb = "select count(*) from bytesoft_gqinfo where gqinfo_delete = false and gqinfo_date = "&date()&stra&strb
rsb.open sqlb,conn,1,1
if not rsb.eof then
response.write(rsb(0))
else
response.write("0")
end if
rsb.close
set rsb = nothing
end function