public function getareaauthornum($cusid, $month) { $db = new db_test(); $query = "select count(*) as activecardnum from tb_author\n where fd_author_bdagentid = '{$cusid}'\n and (fd_author_bdagenttime) like '%{$month}%'\n group by fd_author_bdagentid"; // echo $query; if ($db->execute($query)) { $arr_money = $db->get_one($query); } return $arr_money['activecardnum']; }