我一直试图找到这个语法错误,但似乎无法破解它(经典 ASP 初学者)任何帮助将不胜感激。这是错误消息:
Microsoft JET 数据库引擎错误“80040e14”
FROM 子句中的语法错误。
/courses/benv/2410/2013s2/3420384/assign1/show.asp,第 29 行
代码:
<% option explicit %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>default.asp</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<% dim pic
pic = request.querystring("i")
if pic="" then pic="1"
%>
<!--#include file="dbconn.asp"-->
<div class="container">
<%
dim sql, info
'This is where the Syntax error is.
' 0 1 2 3 4
SQL = "select Images.id, filename, location, Alphabet, Numeric "&_
"from Images "&pic
set info=conn.execute(SQL)
if info.eof then
response.write "<p>No Data Found</p>"
else
response.write "<p>" &_
"id<br>" &_
"filename<br>" &_
"location<br>" &_
"Alphabet<br>" &_
"Numeric<br>" &_
"Description<br>" &_
"</p>"
do
response.write "<p>" &_
info(0) & "<br>" &_
"<a href=""show.asp?i=" & info(0) & """>" &_
"<img src=""images/" & info(1) & """></a>" &_
info(2) & "<br>" &_
info(3) & "<br>" &_
info(4) &_
"</p>"
info.movenext
loop until info.eof
end if
conn.close
%>
</div>
</body>
</html>