ASP新闻调用(sub)过程
发布网友
发布时间:2022-05-27 01:55
我来回答
共1个回答
热心网友
时间:2024-11-24 21:55
sub News(TopNum,leftNum)
set rs=server.createobject("adodb.recordset")
str="select top "&TopNum&" id,news_title,add_date,news_thpe from news order by id desc"
rs.conn str,conn,1,1
do while not rs.eof
'这中间不多写,标题就是
response.write left(rs("news_title",leftNum)
rs.movenext
loop
end sub