I'm beginner in PHP MySQL, I have system that after you register/add the customer information it will change the status after 30 days.
Scenario
In my add customer page, I have forms like Date Start, Date Expiration and Status.
Date Start - automatically set the date today
Expiration - Automatically set the Date Start + 30 days
Expiration2 - Automatically set the Expiration date + 90 days
Status - Status of the customer (if newly registered the status value will be FRESH if after 30days the status will change to INACTIVE if after 90days it will change to DORMANT.
This my code for dateStart and dateExpired , dateExpired2 but I don't know how to code the status process.
$dateStart= Date('Y-m-d');
$dateExpired = date('Y-m-d', strtotime($dateStart. ' + 30 days'));
$dateExpired2 = date('Y-m-d', strtotime($dateExpired2. ' + 90days'));
echo '<input type="text" name= "dateStart" value="'. $dateStart.'"/>';
echo '<input type="text" name= "dateExpired" value="'. $dateExpired .'"/>';

