网站开发与移动开发

博客园 首页 新随笔 管理

2009年9月16日 #

摘要: 格式为2008-06-16 查询出当天数据: SELECT * FROM `table` WHERE date(时间字段) = curdate(); 查询出当月字段: SELECT * FROM `table` WHERE month( 时间字段) = month( now( ) ) ; 时间格式为1219876…… UNIX时间,只要应用“FROM_UNIXTIME( )”函数 例如查询当月: SELECT * FROM `table` WHERE month( from_unixtime( reg_time ) ) = month( now( ) ) ; 查询上一个月的呢?变通一下! SE 阅读全文
posted @ 2009-09-16 08:22 txf2004 阅读(204) 评论(0) 推荐(0)

摘要: 很多时候,我们采用原始的方法来解决一行内循环3张图片,如果上传者只上传了2张图片,那么2张图片间的距离会很大,因为缺少了一个<td>&nbsp;</td>. <table border="0" cellpadding="0" cellspacing="0"> <% dim rs,sqltext set rs = Server.CreateObject("adodb.recordset") sqltext="select * from [bigclass]& 阅读全文
posted @ 2009-09-16 08:17 txf2004 阅读(146) 评论(0) 推荐(0)