1、 sql="select top "&topnums&" id,Product_info_Name,Product_info_PriceM,Product_info_PriceS,Product_info_PicS from Product_info where Product_info_OnOff=0 and CHARINDEX('1',Product_info_flag)>0 order by id desc"

instr(Product_info_flag,1)


============

2'order_info_CheckRealName=rs("order_info_CheckRealName")


3 null()替换成isnull()就可解决


4、call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
应该替换成 call PageControl(iCount,maxpage,page)

5、       DayFrom="#"&DayFrom&"#"
       DayTo="#"&DayTo&"#"