Php 现在之前的时间戳?
很简单,我有以下疑问Php 现在之前的时间戳?,php,mysql,Php,Mysql,很简单,我有以下疑问 $q = "SELECT fixture_date FROM ".TBL_FOOT_GAMES." WHERE leagueid = '$league_id' AND (type = '2' OR type = '12' OR type = '22' OR type = '32') GROUP BY fixture_date ORDER BY fixture_date"; 我需要在fixture\u date上添加一个WHERE,它是一个时间戳。在当前时刻之前需要在哪里
$q = "SELECT fixture_date FROM ".TBL_FOOT_GAMES." WHERE leagueid = '$league_id' AND (type = '2' OR type = '12' OR type = '22' OR type = '32') GROUP BY fixture_date ORDER BY fixture_date";
我需要在fixture\u date
上添加一个WHERE
,它是一个时间戳。在当前时刻之前需要在哪里
有什么想法吗?
谢谢:)WHERE fixture_date
这就是你想要的?时间戳可以像任何其他数据类型一样进行比较。其中fixture_dateWHERE fixture_date < NOW();