<tr>
<td width="345" height="23">技术文章</td>
</tr>
<tr>
<td height="20"><frame src="myhomepage/technical/technical.asp"noresize></td>
</tr>
我用了不显示。
technical.asp:
<
%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<!--#include file="../conn.asp"-->
<%
dim rst
dim sql
dim myarticle
set rst=server.createobject("adodb.recordset")
sql="select top 5 * from article order by time desc"
rst.open sql,1,1
myarticle=rst("title")
n=0
do while not rst.eof and n<5 then
response.write "<a href='"
response.write "technicallist.asp'>"
response.write "'&myarticle&'"
response.write "</a>"
n=n+1
rst.movenext
loop
else
response.write"暂时没有内容"
end if
%>
代码错在哪里
[此贴子已经被作者于2005-7-5 12:15:24编辑过]