时间:2021-07-01 10:21:17 帮助过:13人阅读
/*
*+ -------------------------------
* 计算当天起始点和结束点时间戳 去当天的数据
*+ ------------------------------
*/
$daybegin=strtotime(date("Ymd"));
$dayend=$begin+86400;
$query = "SELECT * FROM `info` WHERE addtime<$dayend AND addtime>$daybegin";
http://www.bkjia.com/PHPjc/477384.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477384.htmlTechArticle[php] /* *+ ------------------------------- * 计算当天起始点和结束点时间戳 去当天的数据 *+ ------------------------------ */ $daybegin=strtotime(date(Ymd)); $da...