while ($line = mysql_fetch_array($result))
{
$selected = "";
if(запись[сокет] == $line['Type_soket']){ $selected = "selected"; }
echo '<option value="'.$line['Type_soket'].'" '.$selected.'>'."Socket"." ".$line['Type_soket'].'</option>';
}