把sql="select  * from article where shenghe=1 and typeid="+cstr(newstype)+" order by dateandtime desc"改为
sql="select  * from article where shenghe=1 and typeid="&cstr(newstype)&"order by dateandtime desc"试试

解决方案 »

  1.   

    articleconn.asp:  
     <%
       dim conn   
       dim connstr
       on error resume next
       connstr="DBQ="+server.mappath("mynews.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
         set conn=server.createobject("ADODB.CONNECTION")
         conn.open connstr 
    %>
      

  2.   

    javastr=javastr+"<font color=\'#ffffff\' size=\'2\'>.</font>"