1
我想算新註冊會員,但我有麻煩PDO盤點記錄與當前日期
$time = new DateTime();
$currentdate = $time->format('Y-m-d');
$cmd=$con->query("select count(*) from user where date(datereg) = ?");
$cmd->execute($currentdate);
$rowcount = $cmd->fetchColumn();
echo $rowcount;
預先感謝您。
爲什麼不只是使用NOW()函數 – user3815506 2014-12-08 02:21:34