最初に私のmysqlテーブルランドは次のとおりです:NL、BE、DE、AFオプション値と等しい場合は、そのオプションを選択するよりも、爆発した単語が必要な場合よりも最初に爆発したい
$resultxx = mysql_query("SELECT * FROM page where page_id = '$page_id'") or die(mysql_error());
$number=mysql_num_rows($resultxx);
while($land = mysql_fetch_array($resultxx)){
$exp = explode(',', $land['land']);
}
$count = 0;
//Check if space exists in substrings
foreach ($exp as $code) {
if (strpos(trim($code), ' ') == false) { //strpos better for checking existance
$count++;
$land = constant(COUNTRY_.$code);
?>
<option selected value="<?php echo $code; ?>"><?php echo $land; ?></option>
<?php
}}
?>
</select>