Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

Select Join for two columns in codeigniter

$
0
0
Hello everybody;
Code:
Table 1
   id product_name location added_by updated_by added date
   1  LENOVO       St 23    2        1          2016-08-26

Table 2
id first_name last_name email
1  John       Doe       jd@email.com
2  Peter      Smith     ps@email.com

I would like to know how to select data with codeigniter query in order to get result like this
Code:
product_name location added_by    updated_by
LENOVO       St 23    Peter Smith John Doe

I have tried with join but added_by column and updated_by column display same data.

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>