恩,加了之后是整个页面只显示select * from news where newsid=''这句话,所以注销掉了,我的HEAD.ASP里面没有包含任何ASP代码的,因为所以的新闻类别那些都是直接用FLASH文本做的,不是从数据库里读的哦,用数据库读的我子页面不会做,所以……
可是这样的话要怎么改呢,<%
Set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from News,Category where news.CateID=Category.CID and '热点新闻' order by NewsID desc"
rs.open sql,conn,3,2
'on error resume next
if not rs.eof then
for i=1 to 5
Response.Write "<a class='style25' onClick='return newwin(this.href);' href='newsView.asp?id=" + cstr(rs("newsid")) + "'>" + rs("newsTitle") +"</p>"
rs.movenext
next
rs.close
end if
%>
这是主页的读新闻题目的语句