Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->db->select('id, description');
- $this->db->from('bf_rates_subtypes');
- $query = $this->db->get();
- $rate_types = $query->result();
- $options = array();
- foreach ($rate_types as $rate_type)
- {
- $array_record = array($rate_type->id => $rate_type->description);
- array_push($options, $array_record);
- }
- echo form_dropdown('bf_rates_subtypes', $options, 'id, description', 'Reporte'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement