title: PHP all dates between date x and date y
body: <p>I have two html input dates as following:</p>
  
  <pre><code>Date 1 &lt;input class="input100" type="date" name="date" placeholder="Date in.. dd/mm/yyyy"&gt;
  Date 2 &lt;input class="input100" type="date" name="date" placeholder="Date in.. dd/mm/yyyy"&gt;
  </code></pre>
  
  <p>And I have this PHP code:</p>
  
  <pre><code>$gdate = strtotime($_REQUEST['date']);
  $gdate = date('Y-m-d', $gdate);
  </code></pre>
  
  <p>I put the date in my database as <code>$gdate</code>, but how do I make it so that it puts all the dates between and with date 1 and date 2 automatically into the database with a certain limit so it won't be too much?</p>