打开网站后,出现这个
Microsoft JET Database Engine ���� '80040e14'
������ (��������ʧ) �ڲ�ѯ����ʽ 's_pai=' �С�
/news_list.asp���� 168
DW里面的代码如下:
<ul class=" webmenu_ul">
<%
sqlstr="select * from a_class where s_pai="&spai&" order by s_order asc,id asc "
SetRs = Conn.Execute(sqlstr)
If Not Rs.Eof Then
Do While Not Rs.Eof
%>
<li <%if aid=rs("id") then%>class="mhover"<%End if%>><a href="news_list.asp?s_pai=<%=spai%>&classid=<%=RS("id")%>">● <%=Rs("s_name")%> </a></li>
<%
Rs.MoveNext
Loop
End If
Rs.Close
Set Rs = Nothing
%>
</ul>
168就是“set RS= Conn.Execute(sqlstr)”这行
|