// read the Checkboxes of record // $count = Number of checkboxes // $features = value of DB // $boxArr[$m] => values of checkboxes in array $count = $this->config['sizeCount']; $k = 1; $features = $row['size']; for ($m=0; $m < $count; $m++) { if ($features & $k) { $boxArr[$m]=1; } else { $boxArr[$m]=0; } $k *= 2; } ;) georg