<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