I have this problem and I do not know how to translate it into PHP code: Know how many times a person has attended in a month to a place. But the month begins the day that person came and the month ends 30 days later. That is, if a person comes on the 18th, the interval would be from the 18th to the 18th of the following month. Use PHP and MySQL.