You do not need to use set_select () since you already define the selected item in from_dropdown ()
form_dropdown('guide', $guide_options, 'investments');
For a better understanding see below code and output
$options = array( 'small' => 'Small Shirt', 'med' => 'Medium Shirt', 'large' => 'Large Shirt', 'xlarge' => 'Extra Large Shirt', ); $shirts_on_sale = array('small', 'large'); echo form_dropdown('shirts', $options, 'large');
source share