Are the values stored all in one field or are values stored in separate fields. If in one field, how are you separating them? How the data is stored will determine how you will process it.
Let's say all the values are stored into one varchar field as a series of comma delimited data. I would extract that field into a variable, then use explode() to break it into an array of selected country ids, for instance:
$country_array=explode(",",$extracted_value);
From there, I would process my checkboxes one at a time. On each one, I would use something like this:
$countries=array("USA","Canada","Mexico","Japan","England")
foreach($countries as $checkbox)
{
$is_checked=0;
foreach($country_array as $selected)
{
if ($selected==$checkbox) $is_checked=$is_checked+1;
}
if ($is_checked==1)
{
echo "<input type=\"checkbox\" name=\"Country[$checkbox]\" value=\"$checkbox\" checked />";
}
else
{
echo "<input type\"checkbox\" name=\"Country[$checkbox]\" value=\"$checkbox\" />";
}
}
Hope this gives you some ideas...