产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

G6转SQL后导航栏的信息统计出错啦 [复制链接]

1#

修改文章表的自定义文件模型

把内容中的now()改为getdate()
分享 转发
TOP
2#

把自定义文件模型贴出来。
TOP
3#

<html>
<head>
<style type="text/css">
div{font:12px/1.7em Verdana,Tahoma,Helvetica,Arial,sans-serif;}
div .hs{colorff0000}
</style>
</head>
<body bgColor="transparent">
<div>
○- 今日访问:<span class="hs"><%=Get_Data("co","select count(id) as co  from pa_count where datediff(day,thedate,getdate())=0")%></span><br>
○- 访问总数:<span class="hs"><%=Get_Data("co","select count(id) as co  from pa_count")%></span>
</div>
</body>
</html>
改一下红色那里 'd' 改为day ,sql数据库的datediff函数的不识别d
TOP
发新话题 回复该主题