Skip to content
Advertisement

How to fetch Data from another table and show on single table in PHP Codeigniter?

I need help, I have 2 tables Client and Product. I want to fetch data from Product Table on basis of Client Table and show it as whole.

JavaScript

I want the table to show the record as:

JavaScript

How can I show them using MVC CI.

Model

JavaScript

Controller

JavaScript

Advertisement

Answer

Client Controller Code:-

JavaScript

Client_model Model Code:-

JavaScript

ViewClient View Page:-

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement