PHP Select from MySQL where date field is 7 days in the future

后端 未结 6 1579
无人及你
无人及你 2021-01-28 12:30

I have an automatic checker that checks for domains that are going to expire within the next 7 days and it sends and email to the customer.

Im using this SQL Query:

6条回答
  •  心在旅途
    2021-01-28 13:03

    If you need to advise the rows missed during the checker stops running, meaby you should use a extra tag to indicate if the domain have been advise or not. After that, you must select all the rows with date lower than now + 7 days and tag as "not advised". After sending the email tag it as "advised". And when they re-new the domain tag back as "not advise".

提交回复
热议问题