Codeigniter (CI) Table Join

 

 

$this->db->select('users.usrID, users_profiles.usrpID')
         ->from('users')
         ->join('users_profiles', 'users.usrID = users_profiles.usrpID');
$result = $this->db->get();

Comments

Popular posts from this blog

Frequently asked: Vue.JS Interview Questions and Answers

Base URL Setting in Codeigniter

How To Secure Apache with Let's Encrypt on Ubuntu (Digital Ocean)