<% dim topcode sub cntop() topcode="现在时间是:" topcode=topcode&now() end sub
dim leftcode,i sub cnleft() for i = 1 to 5 leftcode=leftcode&"
cnbruce.com" next end sub
dim rightcode sub cnright() for i = 1 to 9 rightcode=rightcode&"
" next end sub %>
5,最后,调用数据库中的模板代码,将特殊字符串转换。
<% sql="select * from moban where m_id=1" set rs=Server.CreateObject("adodb.recordset") rs.open sql,conn,1,1 mb_code=rs("m_html") rs.close set rs=nothing