$query = "SELECT asset_id FROM #__content WHERE state = 1 AND YEARWEEK(publish_up) = YEARWEEK(NOW())";
使用这个字符串,我可以在一周内创建所有文章,但问题是,它从周一到周日计算,无论如何我都需要它连续 7 天。
$query = "SELECT asset_id FROM #__content WHERE state = 1 AND YEARWEEK(publish_up) = YEARWEEK(NOW())";
使用这个字符串,我可以在一周内创建所有文章,但问题是,它从周一到周日计算,无论如何我都需要它连续 7 天。