另外新建一个页面,显示新闻
代码如下:
<%
Dim id
id = trim(request.querystring("ID"))
If id = "" or id = "0" then
response.write("")
response.end
else
set rs= server.createobject("adodb.recordset")
sql = "select * from news where id=" & id
rs.open sql,conn,1,1
%>
另外一个页面
<%id=request.QueryString("id")%>
<%set rs=conn.execute("select * from news where news_id="&request("news_id")&"")%> <%=rs("content")%>
<%
id = request.querystring("id")
%>