title: Change the value after expiration date PHP MYSQL
body: <p>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.</p>
  
  <p><strong>Scenario</strong> <br/>
  In my add customer page, I have forms like Date Start, Date Expiration and Status.</p>
  
  <p><em>Date Start</em> - automatically set the date today <br/>
  <em>Expiration</em> - Automatically set the Date Start + 30 days <br/>
  <em>Expiration2</em> - Automatically set the Expiration date + 90 days <br/>
  <em>Status</em> - Status of the customer (if newly registered the status value will be <strong><code>FRESH</code></strong> if after <strong>30days</strong> the status will change to <strong><code>INACTIVE</code></strong> if after <strong>90days</strong> it will change to <strong><code>DORMANT</code></strong>.</p>
  
  <p>This my code for <strong><code>dateStart</code></strong> and <strong><code>dateExpired</code></strong> , <strong><code>dateExpired2</code></strong> but I don't know how to code the <strong><code>status</code></strong> process.</p>
  
  <pre><code>$dateStart= Date('Y-m-d');
  $dateExpired = date('Y-m-d', strtotime($dateStart. ' + 30 days'));
  $dateExpired2 = date('Y-m-d', strtotime($dateExpired2. ' + 90days'));
  
  echo '&lt;input type="text" name= "dateStart" value="'. $dateStart.'"/&gt;';
  echo '&lt;input type="text" name= "dateExpired" value="'. $dateExpired .'"/&gt;';
  </code></pre>