: :
privList as $pgid=>$row):?>

$res):?> priv)):?>checked="checked" type="checkbox" value="" />