有关ASP中Getrows的问题

hafeng 2004-02-18 02:48:32
各位同仁:
请看下面Getrows使用的问题.

数据库库连接从略

Application.Lock()
Application("news")=recordsetnews.Getrows(5,0)
Application.UnLock()
.
.
.
.
<% dim news_index
news_index=0
if ISARRAY(Application("news"))then
While(news_index<=ubound(Application("news"),2))%>
<tr>
<td bordercolor=#FFFFFF bgcolor=#FAFAFA><div align="left"><A HREF="news.asp?id=<%response.Write news_index%>">
<%response.Write news_index&"."&Application("news")(0,news_index)%>
</A></div></td>
</tr>
<%news_index=news_index+1
Wend
end if%>


像 Application("news")(0,news_index)
如果我要选择表中第三\第四....例时,要怎么写呢?



...全文
107 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧