I have found myself in the ' and " hell. Can't figure out why this is not working. Would appreciate some fresh experienced over it. Thanks
foreach($channels as $channel)
{
echo '<option value="'.$channel['id'].'" '.($channel['id'] == 2) ? 'selected' : ''.'>'.$channel['name'].'</option>';
}