<!DOCTYPE html PUBLIC "-⼀⼀W3C⼀⼀DTD XHTML 1.0 Transitional⼀⼀EN" "http:⼀⼀www.w3.org⼀TR⼀xhtml1⼀DTD⼀xht

2025-02-27 06:55:45
推荐回答(3个)
回答1:





无标题文档




<%
sql="select*form xw order by id desc"
con.open strconn
rs.open strsql,strconn,1,3
do while not rs.eof
%>
"><%=rs("bt")%>
<%
rs.movenext
loop
rs.close
con.close
set con=nothing
%>


-----Connection.asp--------
<%
set con=server.CreateObject("ADODB.connection")
set rs=server.CreateObject("ADODB.recordset")
strconn="provider=microsoft.jet.oledb.4.0;data source="&server.MapPath("db/dbname.mdb")
%>

回答2:

script 等等

这句话就是告诉浏览器你用的html代码是哪一个版本
w3c根据你声明的版本来检查你的代码是否符合w3c规范

XHTML 1.0 Transitio 是过渡型,现在大部分用的都是这个
具体的内容很多,想弄清楚还是要多看资料

回答3:

sql语句写错了!正确的写法应该是
sql = select * from xw order by desc