Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

return only one column data from table in codeigniter

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 by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #column #data #table #codeigniter
ADD COMMENT
Topic
Name
6+6 =