[Microsoft][ODBC Microsoft Access Driver] FROM 子句语法错误。
找了很久都不知道是错在哪我觉得我FROM没用错呀希望高手指点<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><!--#includefile=...
找了很久都不知道是错在哪 我觉得我FROM没用错呀 希望高手指点
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="odbc_connection.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>详细内容</title>
</head>
<body>
<h2 align="center">详细内容</h2>
<%
dim bbs_id
bbs_id=request("bbs_id")
dim sql,rs
sql="select * from [bbs] where bbs_id="&bbs_id
set rs=db.execute(sql)
%>
<center>
<p><a href="index.asp?page_no=<%session("page_no")%>">返回首页</a>
<a href="re_announce.asp?&bbs_id=<%=bbs_id%>&title=<%=rs("title")%>">回复文章</a>
</p>
<table border="0" bgcolor="ccffff" width="90%">
<tr>
<td width="20%">主题</td>
<td><b><big><%=rs("title")%></big></b></td>
</tr>
<tr>
<td>内容</td>
<td><%=rs("body")%></td>
</tr>
<tr>
<td></td>
<td align="right"><small><i><%=rs("user_name")%> 发表于<%=rs("submit_date")%></small></td>
</tr>
</table>
<%
sql="Select title,body,user_name,submit_date From [bbs] where"
sql=sql&"parent_id="&bbs_id
sql=sql&"order by submit_date desc"
set rs=db.execute(sql)
dim i
i=0
do while not rs.eof
i=i+1
%>
<table border="0" bgcolor="ffffcc" width="90%">
<caption align="left"><font color="red" size=2>回复<%=i%></font></caption>
<tr>
<td width="20%">主题</td>
<td><%=rs("title")%></td>
</tr>
<tr>
<td>内容</td>
<td><%=rs("body")%></td>
</tr>
<tr>
<td></td>
<td align="right"><small><i><%=rs("user_name")%> 回复于<%=rs("submit_date")%></i></small></td>
</tr>
</table>
<%
rs.movenext
loop
%>
</center>
</body>
</html> 展开
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="odbc_connection.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>详细内容</title>
</head>
<body>
<h2 align="center">详细内容</h2>
<%
dim bbs_id
bbs_id=request("bbs_id")
dim sql,rs
sql="select * from [bbs] where bbs_id="&bbs_id
set rs=db.execute(sql)
%>
<center>
<p><a href="index.asp?page_no=<%session("page_no")%>">返回首页</a>
<a href="re_announce.asp?&bbs_id=<%=bbs_id%>&title=<%=rs("title")%>">回复文章</a>
</p>
<table border="0" bgcolor="ccffff" width="90%">
<tr>
<td width="20%">主题</td>
<td><b><big><%=rs("title")%></big></b></td>
</tr>
<tr>
<td>内容</td>
<td><%=rs("body")%></td>
</tr>
<tr>
<td></td>
<td align="right"><small><i><%=rs("user_name")%> 发表于<%=rs("submit_date")%></small></td>
</tr>
</table>
<%
sql="Select title,body,user_name,submit_date From [bbs] where"
sql=sql&"parent_id="&bbs_id
sql=sql&"order by submit_date desc"
set rs=db.execute(sql)
dim i
i=0
do while not rs.eof
i=i+1
%>
<table border="0" bgcolor="ffffcc" width="90%">
<caption align="left"><font color="red" size=2>回复<%=i%></font></caption>
<tr>
<td width="20%">主题</td>
<td><%=rs("title")%></td>
</tr>
<tr>
<td>内容</td>
<td><%=rs("body")%></td>
</tr>
<tr>
<td></td>
<td align="right"><small><i><%=rs("user_name")%> 回复于<%=rs("submit_date")%></i></small></td>
</tr>
</table>
<%
rs.movenext
loop
%>
</center>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询