CodeIgniter 4 Join 2, 3 Tables

//Join 2 Tables
$this->db->select(‘*’);
$this->db->from(‘table1’);
$this->db->join(‘table2’, ‘table1.id = table2.id’);
$query = $this->db->get();

//Join 3 Tables
$this->db->select(‘*’);
$this->db->from(‘table1’);
$this->db->join(‘table2’, ‘table1.id = table2.id’);
$this->db->join(‘table3’, ‘table2.id = table3.id’);
$query = $this->db->get();


CodeIgniter 4 Join 2, 3 Tables

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?