title: Display succeeding month php
body: <p>I am a bit new to PHP
  is there a way to display a month in succession?</p>
  
  <p>the sample is my first date is <code>July 01, 2018</code></p>
  
  <p>the output should be</p>
  
  <pre><code>July 01, 2018
  Aug 01, 2018
  Sept 01, 2018 ..
  </code></pre>
  
  <p>and so on until to the date I declare</p>
  
  <p>Update:
  here is my code</p>
  
  <pre><code>$propd = "SELECT * FROM tbl_sample WHERE Person_ID = ".$Person_ID;
  $prop_counter = $conn-&gt;query($propd);
  
  while($pcount_Row = $prop_counter-&gt;fetch_assoc()) {
      $Acceptance_Date = $pcount_Row["Accpt_Date"];
  }
  
  /////////////////////////////
  
  $NAcceptance_Date = strtotime($Acceptance_Date);
  $nMonth = strtotime($Acceptance_Date);
  $Start_Date = date('M d,Y', $NAcceptance_Date);
  
  $x=1;
  $Month_Counter=1;
  $Monthly[$x] = $Start_Date;
  //echo $Monthly[$x];
  $x++;
  
  $JDate=strtotime("June 01, 2018");
  $JuneDate = date("M d,Y", $JDate);
  
  
  while ($Start_Date != $JuneDate)
  {
  $Start_Date = date("M d, Y", strtotime("+1 month", $nMonth));
  $nMonth= strtotime($Start_Date);
  echo $Start_Date . "-" . $JuneDate . "&lt;br&gt;";
  }
  </code></pre>
  
  <p>where </p>
  
  <pre><code>$Acceptance_Date = July 01, 2009
  $JuneDate = June 01, 2018
  </code></pre>
  
  <p>but my won't stop at June 01, 2018</p>