Make a new list without same attribute
<p>I have 2 list of month and year. for example list 1 start from January 2012 until December  2012 and list 2 have may 2012 and April 2012. In new list, may and April 2012 is not  include. How can i make this happen? Anyway i use php and mysql.</p>

<pre><code>$s=0;
$i=0;
 while($row = mysql_fetch_array($result)){
    $month = strtotime($row['start_date']);
    $end = strtotime($row['end-date']);

    while($month &lt; $end)
    {
         $list= date('F Y', $month). PHP_EOL."&lt;br/&gt;";
        $month = strtotime("+1 month", $month);
        $s++;    
    }

}

$row1 = mysql_fetch_array($result1);
$start = strtotime($row1['reg_date']);
$current= strtotime(date('Y-m-d'));
while($start &lt; $current)
{
      $list2= date('F Y', $start). PHP_EOL."&lt;br/&gt;";
        $start = strtotime("+1 month", $start);
        $i++;    
}

echo $s;
echo $i;
</code></pre>

<p>$i is the list1  and $s is the list2</p>
