PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

请教统计代码 [复制链接]

1#
今日文章:<span class="hs"><%=Get_Data("co","select count(id) as co from article where datediff('d',thedate,Now())=0")%></span><br>
如果改为2012年文章,代码该怎么写
如果改为2013-01-01到2014-03-03文章数代码该怎么写
分享 转发
TOP
2#

sql数据库:<%=Get_Data("co","select count(id) as co from article where thedate between '2013-01-01'  and   '2014-03-03'")%>
如果用access数据库:<%=Get_Data("co","select count(id) as co from article where thedate between #2013-01-01#  and #2014-03-03#")%>
TOP
发新话题 回复该主题