Month checkboxs
<p>I have check box according to current month in my page, i have 1 (active) 0r 0 (inactive) value for them in database . I also have saved date corresponding to record. Now i want check box checked which values are 1 and corresponding to their date, and unchecked which values is 0. Other boxes should be empty because i have not not full month value.</p>

<pre><code>   &lt;?php 
            $isActiveYMD="";
            $isActive="";
            foreach($attendancelist as $attendancelis){
                $isActive[]= $attendancelis['EmployeeAttendance']['is_active'];
                $isActivee= $attendancelis['EmployeeAttendance']['date'];
                $isActiveYMD[] = date('d-m-Y',strtotime($isActivee));
            }
            $no_of_days= date("t");
            for($i=1;$i&lt;=$no_of_days;$i++){
            ?&gt;
            &lt;div style="width:300px;float:left;"&gt;
            &lt;input type="checkbox" value="1" name="isactive" &lt;?php if($isActive[$i]=="1"){ ?&gt;checked="checked" &lt;?php  }else{   } ?&gt; /&gt;
            &lt;?php echo $start = date(''.$i.'-m-Y'); ?&gt;
            &lt;/br&gt;&lt;/br&gt;&lt;/br&gt;     
            &lt;/div&gt;
            &lt;?php
            }
            ?&gt;
</code></pre>
