title: use php to increment a date one week at a time with 10 iterations
body: <p>I want to increment a start date by 1 week 10 times. This code doesn't work:</p>
  
  <pre><code>&lt;?php 
  
  $start_date = "06/25/2012";  
  $date = strtotime($start_date);
  $X=1;
  
  while ($X &lt;= 10) {$X++; $Y=7*$X;
  
  $date = strtotime("+ $Y days", $date);
  echo date('m/d/Y', $date)."&lt;br&gt;";
  
  }
  </code></pre>
  
  <p>gives:</p>
  
  <pre><code>07/09/2012
  07/30/2012
  08/27/2012
  10/01/2012
  11/12/2012
  12/31/2012
  02/25/2013
  04/29/2013
  07/08/2013
  09/23/2013
  </code></pre>
  
  <p>This is wrong!</p>