新手学asp
1.怎么样调试asp,就是怎么样让asp中断执行,并输出当步骤的结果
2.asp中,连接数据库中的表,表不存在时,程序怎么都不报错啊?还在不停的执行,最后耗尽资源,死机,怎么处理
呵,我是新手,刚学两天,请大家多多指教
下面一段我自已写的代码,哪错了,高手指点一下<!--#include file="../Inc/Conn.asp"-->
<table width="168" height="112" border="1" align="center" cellpadding="3" cellspacing="3" bordercolor="#111111" background="images/index_01b.gif" bgcolor="#FFCCFF" id="AutoNumber1" style="border-collapse: collapse">
<%
dim RSAnnounce
dim query
dim timestamp
timestamp = now()
set RSAnnounce = server.CreateObject("adodb.recordset")
query = "SELECT * FROM announcement where endtime>'"×tamp&"' or (starttime<>'' and endtime='')"
RSAnnounce.open query,conn,1,1
if RSAnnounce.BOF<>true and RSAnnounce.EOF<>true then
do until RSAnnounce.eof
%>
<tr>
<td><marquee direction="up" onMouseOver="this.stop()" onMouseOut="this.start()"><a href="announcement1.asp?aid=<% RSAnnounce("aid") %>"><% response.Write RSAnnounce("aid") %>this is a test</a></marquee></td>
</tr>
<%
RSAnnounce.movenext
loop
else
%>
<tr>
<td align="center">暂时没有公告</td>
</tr>
<%
end if
%>
</table>