Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $this->db->select('id, description');
  2. $this->db->from('bf_rates_subtypes');
  3. $query = $this->db->get();
  4. $rate_types = $query->result();
  5.  
  6.  
  7. $options = array();
  8. foreach ($rate_types as $rate_type)
  9. {
  10. $array_record = array($rate_type->id => $rate_type->description);
  11. array_push($options, $array_record);
  12. }
  13.  
  14.  
  15.  
  16. echo form_dropdown('bf_rates_subtypes', $options, 'id, description', 'Reporte'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement