asp關(guān)于統(tǒng)計(jì)總數(shù)的實(shí)例代碼分享
作者: 來(lái)源: 發(fā)布時(shí)間:2011-6-17 11:41:44 點(diǎn)擊:
下面提供給大家的是一個(gè)asp關(guān)于統(tǒng)計(jì)總數(shù)的實(shí)例代碼,希望對(duì)大家有所幫助。
<%
function count_biao(biao)
set rskz=server.createobject("adodb.recordset")
set rskz=conn.execute("select count(*) from "&biao&"")
Response.Write rskz(0)
rskz.close
set rskz=nothing
end function
%>
<%= count_biao("news") %>
[收藏此文章]