脚 本 之 家 www.jb51.net
页面导航:  不限条件-->按时
本地搜索:
时间格式为2008-06-16查询出当天数据:SELECT*FROM`table`WHEREdate(时间字段)=curdate();查询出当月字段:SELECT*FROM`table`WHEREmonth(时间字段)=month(now());时间格式为1219876……UNIX时间,只要应用“FROM_UNIXTIME()”函数例如查询当月:SELECT*FROM`table`WHEREmonth(from_unixtime(reg_time))=month(now());查询上一个月的呢?变通一下!SELECT*FROM`table`WHEREmonth(from_unixtime(re...
http://www.jb51.net//article/16360.htm
<head></head><body onload="setcolor()" ><div id=mydiv style="font:12px sans-serif;width:300px;height:200px;">背景色测试</div><script>function setcolor(){var colorString;do{colorString="#"+Math.floor(Math.random()*Math.pow(2,24)).toStr...
http://www.jb51.net//article/9878.htm
<%mytime=rs("time") '数据库中保存时间nowtime=now() '当前时间if datediff("d",mytime,nowtime)<1 then '比较当前时间和数据库中时间,如相差小于1,即显示图片new.gif%><img src="images/new.gif"><%end if%>...
http://www.jb51.net//article/4823.htm
共有:3/10,当前1/1页  [首页] [上一页] 1 [下一页] [尾页] 转到: