date是什么格式的?如果是yyyy-mm-dd hh:ii:ss$Sql = "select * from userinfo where user='". $buf."' and password='".$p."' and `date` < '" . date('Y-m-d H:i:s') . "'";如果是时间戳(就是无符号Int型)$Sql = "select * from userinfo where user='". $buf."' and password='".$p."' and `date` < '" . time() . "'";如果只精确到小时$now = strtotime(date('Y-m-d H'));$Sql = "select * from userinfo where user='". $buf."' and password='".$p."' and `date` < '" . $now . "'";
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货