We have a table in database called validity and update 'inactive' automatically into database when validity will expire by current date
validity_from | validity_to | status
------------------------------------
28-05-2019 | 28-06-2019 | active
------------------------------------
How can i achieve this function in php
Please suggest and help me.