title: how to check two dates between from-date and to-date
body: <p>I have two dates <code>from-date</code> &amp; <code>to-date</code>.</p>
  
  <p>I have to compare them from existing  dates shown below, whether any of the day  fall between them or not using php?<br>
  i can do for single date checking ,but i am confuse for the two date checking. </p>
  
  <p>Example: 
  i have to check these dates:-> from=<code>15 March 2013</code>  &amp; <code>15 April 2013</code>  between the following dates  whether any days falls in between these two date or not.   </p>
  
  <h2>following data from db table</h2>
  
  <pre><code> #       from date            to-date
  -----------------------------------------
  1     01 April 2013         30 April 2013   //here we will find as falling
  2     01 May 2013           15 May 2013   
  3     01 June 2013          20 June 2013
  </code></pre>
  
  <p>Currently,in my mind not even a single logic is coming to try. Please give me any logic or suggestions regarding this issue.. </p>