⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

retrieve values from related table where field name is already present in first table



kanted
  • profile picture
  • Member

Posted 10 February 2016 - 05:29 AM

Have tables which have same filed names

Table1

 

id | rid | qty

 

Table2

 

id | name | qty

 

$crud->set_relation('id','table2','qty');
 
how to display both qty column in crud. 
 
Need crud column something like this
 
 id | rid | qty(from table1) | qty (from table2)