最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp程序与网页分离
时间:2022-07-02 22:42:38 编辑:袖梨 来源:一聚教程网
< !-- #include file="adoconn.asp" -- >
< !-- #include file="kktTemplate.asp" -- >
< %
'=========================================
'功能:网页与程序分离,并从数据库中读取数据
'作者:wangsdong
'来源:www.aspprogram.cn
'文章为作者原创,转载请注明文章出处、保留作
'者信息,谢谢支持!
'=========================================
dim my_color, kkt, myname, animal, plant
set kkt = new kktTemplate
kkt.set_file "hndKktTemp", "templeta/4.html"
sql="select * from news"
Set rs=conn.execute(sql)
If rs.eof Then
Else
kkt.set_block "hndKktTemp", "newsList", "a"
Do While Not rs.eof
kkt.set_var "title", rs("title"), False
kkt.set_var "id", rs("id"), false
kkt.parse "a", "newsList", true
rs.movenext
Loop
End If
rs.close
Set animal=nothing
kkt.parse "out", "hndKktTemp", false
kkt.p "out"
% >
相关文章
- 《夜族崛起》铁匠西里尔位置一览 05-17
- 《寓言之地》1.02更新内容一览 05-17
- 《辐射4》steam好评率介绍 05-17
- 《夜族崛起》技能强化珠宝掉落说明 05-17
- 《辐射4》主机控制台介绍 05-17
- 《星露谷物语》海草和绿藻获取方法 05-17