View Single Post
Old 11-08-2012, 09:51 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,191
Thanks: 59
Thanked 3,995 Times in 3,964 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Again, I don't use PHP, but I think you could write that a bit more compactly thus:
Code:
strpos($country_options, ( $val = $get_row["contry"] ) ) === false ) 
{ 
    echo ( $opt = '<option value='"' . $val . '">' . $val . "</option\n" ); 
    $country_options .= $opt; 
}
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote