title: How to edit codeigniter form drop down
body: <p>I am using codeigniter form drop down.</p>
  
  <p><strong>add_store.php</strong>  code is like this :-</p>
  
  <pre><code> &lt;tr&gt;
              &lt;td&gt;country&lt;/td&gt;
              &lt;td&gt;&lt;?=form_input('country', set_value('country'));?&gt;&lt;/td&gt;
              &lt;td class="error"&gt;&lt;?php echo form_error('country'); ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?=form_dropdown('Equipment',$options = array(
                                  '1'   =&gt; '1',
                                  '2'   =&gt; '2',
                                  '3'   =&gt; '3',
                                  '4'   =&gt; '4',
                                  '5'   =&gt; '5',
                                  '6'   =&gt; '6',
                                  '7'   =&gt; '7',
                                  '8'   =&gt; '8',
                                  '9'   =&gt; '9',
                                  '10' =&gt; '10'));?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>I added this form in to the database and it works fine.</p>
  
  <p>Now I want to edit this page. I am doing something like this :-</p>
  
  <p><strong>edit_store.php page is here</strong></p>
  
  <pre><code>&lt;tr&gt;
                  &lt;td&gt;country&lt;/td&gt;
                  &lt;td&gt;&lt;?=form_input('country', set_value('country', $store['country']));?&gt;&lt;/td&gt;
                  &lt;td class="error"&gt;&lt;?php echo form_error('country'); ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
   &lt;tr&gt;
                  &lt;td&gt;Equipment Rating&lt;/td&gt;
                  &lt;td&gt;&lt;?=
                                  $selected_Equipment = $this-&gt;input-&gt;post('Equipment');
                                  form_dropdown('Equipment'$selected_Equipment);?&gt;&lt;/td&gt;
      // what i can do here, I am doing something wrong here??????????????????????????????????????????            
  &lt;/tr&gt;
  </code></pre>
  
  <p>My Question is: what can I do for selected Drop down coming from database ?</p>
  
  <p>How to edit Drop down selected value?</p>
  
  <p>So what can I do ??? </p>