有没有办法只显示比某个日期在一个PHP MySQL数组中的项目?我使用这种查询方法和lastpost_cl排序:只显示使用PHP和时间()的MySQL数据库中的某些项目()
$query="SELECT * FROM properties ORDER BY lastpost_cl";
$result=mysql_query($query);
$num = mysql_num_rows ($result);
mysql_close();
,我想检查时间将是方式:
if (time() <= strtotime($lastpost_cl)) {
}
我怎样才能将二者结合起来,并只显示lastpost_cl那比目前的年龄更老?
工作很好。谢谢! – Jon 2010-06-03 03:21:08