weird select drop down box error. content spilling out on page
<p>Weird issue the country names are no longer being listed in the select dropdown box they're just spilling out all over the page. can anyone spot the coding error that is causing it?</p>

<pre><code>echo "&lt;select name=recordcountry style='width: 136px;'&gt;";
//echo "&lt;option value=$country selected=selected&gt;-- Select --&lt;/option&gt;";
echo "&lt;option ". ($data['recordcountry'] == "" ? 'selected=selected&gt;-- Select --&lt;/option&gt;' : 'value="' .$data['recordcountry']. '" selected=selected');

$group1 = '&lt;optgroup label=Common&gt;';
$group2 = '&lt;optgroup label=Alphabetically&gt;';
$group = mysql_query("SELECT country, grouping, p_order FROM mast_country 
WHERE grouping IN ('1','2') ORDER BY p_order");
while($row = mysql_fetch_array($group))
{
  if ($row['grouping'] == '1')
  {
       $group1 .= '&lt;option value="'.$row['country'].'"&gt;'.
            $row['country'].'&lt;/option&gt;';
  }
  else
  {
       $group2 .= '&lt;option value="'.$row['country'].'"&gt;'.
            $row['country'].'&lt;/option&gt;';
  }
    $group1 .= '&lt;/otpgroup&gt;';
    $group2 .= '&lt;/otpgroup&gt;';

    echo $group1;
    echo $group2;
    echo "&lt;/select&gt;";
}  
</code></pre>
