/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Model function name() { $this->db->select('column_name'); return $this->db->get('db_name'); } //Controller $data['row'] = $this->db->name($var)->row(); //view <?=$row->column_name;?>