Question : return only one column data from table in codeigniter
Answered by : ankur-prajapati
function sban_name($asset)
{ $this->db->select('name'); $this->db->from('asset_types'); $this->db->where('code', $asset); return $this->db->get()->row()->name;
}
Source : https://stackoverflow.com/questions/16954107/getting-the-value-of-the-single-field-output-using-the-codeigniter-active-record | Last Update : Sat, 29 Jan 22