php mysql查询指定范围内日期
php时间戳查询。
如果数据库时间显示的是 2011-04-05,则不需要用 strtotime 时间戳转换函数。
例子,php时间段查询。
$timea = strtotime($_POST['timea']);
$timeb = strtotime($_POST['timeb']);
$sq2="select * from `ecs_order_info` where add_time between '$timea' and '$timeb' and `quanxian`='$dangqian' order by `order_id` DESC limit 50";
$sql = mysql_query($sq2);
您可能感兴趣的文章:
php mysql查询指定范围内日期
php查询指定日期范围内数据
mysql时间查询常用语句大全
Mysql查询一段时间记录方法详解
mysql 随机生成某个范围内的整数
mysql 时间段查询语句大全
mysql日期详解
PHP日期查询函数实用代码
php与Mysql日期时间(UNIX时间戳、格式化日期)转换的方法
如何开启mysql和php慢日志