You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$query1 = "select count(*) as num from ec_qunfas where accountid like '%,$accountid,%' and createdtime > '$oneweek' and deleted=0";
$result1 = $adb->query($query1);
$row1 = $adb->fetch_array($result1);
$oneweeksendmessnum = $row1['num'];
$query2 = "select count(*) as num from ec_qunfas where accountid like '%,$accountid,%' and createdtime > '$onemonth' and deleted=0";
$result2 = $adb->query($query2);
$row2 = $adb->fetch_array($result2);
$onemonthsendmessnum = $row2['num'];
$query3 = "select count(*) as num from ec_qunfas where accountid like '%,$accountid,%' and createdtime > '$threemonth' and deleted=0";
$result3 = $adb->query($query3);
$row3 = $adb->fetch_array($result3);
$threemonthsendmessnum = $row3['num'];
$updatesql = "update ec_account set oneweeksendmess=$oneweeksendmessnum,onemonthsendmess=$onemonthsendmessnum,threemonthsendmess=$threemonthsendmessnum where accountid=$accountid";