gistfile1.txt $nowdate = date("Y-m-d", time()); $dayregnum = m('users')-where(array("_string" = "from_unixtime(regtime,'%Y-%m-%d')='" . $nowdate . "'"))-field("id")-count();
$nowdate = date("Y-m-d", time()); $dayregnum = m('users')->where(array("_string" => "from_unixtime(regtime,'%Y-%m-%d')='" . $nowdate . "'"))->field("id")->count();