注册 登录
编程论坛 ASP技术论坛

大家看看我的代码错在那里了!

gaosugonglu 发布于 2007-12-07 20:27, 475 次点击
set conn=server.CreateObject("adodb.connection")
DBPath = Server.MapPath("gaosu.mdb")
conn.open "provider=microsoft.jet.oledb.4.0; data source="&DBpath
id=request("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where id="&id
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" c>
<title>新建网页 1</title>
</head>
<body>
<table border="0" width="100%">
 <tr>


  <td bgcolor="#6666FF"><%=rs("bt")%></td>
 </tr>
 <tr>
  <td bgcolor="#FF0000"><%=rs("nr")%></td>
 </tr>
</table>
</body>
</html>
1 回复
#2
madpbpl2007-12-07 20:57
提示什么错误?
1