| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 405 人关注过本帖
标题:我是新手,这个页面怎么不能显示啊.愁死了
取消只看楼主 加入收藏
wjhbj210
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2009-9-5
结帖率:0
收藏
 问题点数:0 回复次数:0 
我是新手,这个页面怎么不能显示啊.愁死了
<!--#include file="conn.asp"-->
<html>
<head>
<body>
<p><b><a href="say.asp">发表帖子</a></b>
<hr size="1" width="90%" >
<table width="454" border="1" align="center">

  <tr>
    <td width="83%" align="center">标题</td>
    <td width="17%" align="center">作者</td>
  </tr>
  </table>
  
  <table width="454" border="1" align="center">
  <tbody><tr>
  <%
set rs=server.createobject("adodb.recordset")
sql="select * from bbs order by id"
rs.open sql,conn,1,1
if rs.recordcount=0 then
           response.write "暂时还没有发表的帖子!"
           rs.close
           else
           %>
  <%
for i=1 to 20   
%>
    <td width="83%">      
    <a target="_blank" href="show.asp?id=<%=rs("id")%>"><%=rs("title")%></a>   
    </td>
    <td width="17%"><%=rs("user")%></td>
  </tr>
   <%
rs.movenext
if rs.eof then exit for
next
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<%
end if
%>
  </tbody>
  </table>
<hr size="1" width="90%">

</body>
</head>
</html>
搜索更多相关主题的帖子: 页面 
2009-09-27 11:09
快速回复:我是新手,这个页面怎么不能显示啊.愁死了
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.010853 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved