Hi I've data for year store as serialize like this
a:2:{i:0;s:4:"2011";i:1;s:4:"2013";}and have a list of predefined year like this:
$current_year = date('Y');
for($year = 2011; $year < $current_year; $year++)
{
$year;
}
So, I want to populate a list of checkboxes like below:
[x] 2011
[ ] 2012
[x] 2013
...
If the year is not in the predefined year (in this case 2011,2012 and 2013), the year should be unchecked.
I've search but so far the nearest solution is not in PHP