on-internet
← Community

How to access the result set data from a CodeIgniter query [duplicate]

Stack Overflow ·

I have my my model: $this->db->select('companyName,companySlogan,companyContact,companyEmail,companyWebsite,companyPhone,companyFax,companyAddress'); $result = $this->db->get('companyDetails'); How would I return my $result so that I can call it via my controller in the following form? $data['companyName'] = $this->quote->companyDetails->companyName

Comments

Sign in or sign up to comment and upvote.

No comments yet.