DropDown with value selected

Hello All,

i ve got a problem with a dropdownlist wich the values are coming from a db.
I build the list for the combo like this:

header(“Content-type:text/xml”);
echo “<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n”;
echo “\n”;
if (isset($reply_array[‘category’]) && count($reply_array[‘category’]))
{
foreach ($reply_array[‘category’] as $category)
{
$name = htmlspecialchars($category[‘label’]);
$name = str_replace(’ ', ’ ', $name);
echo '\n";
}
}
echo ‘’;

but if i insert a “selected” like in html, the grid is no more working…
exemple:
echo '\n";

i want to set a special value for the dropdownlist but how ?
can u please help me ?
Thanks
Poulipe