我正在开发一个需要这样做的制度:
- I have various rows on one table, and one of them is Total
- I want the script that can add the total of all the fields in the Total column.
- I will then add the session user so that it only calculates all total fields in that column for that particular person.
请让我问: 查询单例为30天
$query="SELECT *
FROM clientdata
WHERE ADDTime BETWEEN DATE_SUB(NOW(), INTERVAL 30 DAY) AND NOW()
AND member_id= " . $_SESSION[ SESS_FIRST_NAME ] . " ";
因此,你还可以在本届会议上增加以下员额的守则细节。