This should take care of it for you.
WARNING
This code is untested so probably has errors so I'm comenting it so you can debug it yourself.
<?php
//create an array that contains the names of
//the variables as the keys and the
//printed name as the value.
$vars_ary = array(
'notecheck' => 'Notes',
'progcheck' => 'Progress',
'hostcheck' => 'Hosting',
'helpcheck' => 'Helpful Docs');
//loop through the keys of the array
//we just created
foreach(array_keys($vars_ary) as $chk_name) {
//start the table cell and the checkbox
echo "<td width=\"25%\" > <input type=\"checkbox\" ";
//if the value in a_row is Y then
//print the checked code and set
//the value of a variable named
//after this key to Y
if($a_row[$chk_name] == "Y") {
echo "checked=\"checked\" ";
$$chk_name = "Y";
//otherwise just set the variable
//named after this key to N
} else {
$$chk_name = "N";
}
//print the end of the checkbox and the display
//name then finish the table cell
echo "name=\"" . $chk_name . "\" value=\"" . $chk_name . "\"> ";
echo $vars_ary[$chk_name] . "</td>\n";
}
?>
don't forget to remove most of these comments as this code is seriously over comented.