计算当天起始点和结束点时间戳 去当天的数据
[php] /*
*+ -------------------------------
* 计算当天起始点和结束点时间戳 去当天的数据
*+ ------------------------------
*/
$daybegin=strtotime(date("Ymd"));
$dayend=$begin+86400;
$query = "SELECT * FROM `info` WHERE addtime<$dayend AND addtime>$daybegin";
/*
*+ -------------------------------
* 计算当天起始点和结束点时间戳 去当天的数据
*+ ------------------------------
*/
$daybegin=strtotime(date("Ymd"));
$dayend=$begin+86400;
$query = "SELECT * FROM `info` WHERE addtime<$dayend AND addtime>$daybegin";
补充:Web开发 , php ,