![]() |
09-30-2021, 08:46 PM
(This post was last modified: 10-04-2021, 04:13 PM by includebeer. Edit Reason: formatting )
i have 2 table, profiles and details.
trackid in details table is a foreign key that references to trackid in profiles table which is a primary key Code: profiles table: first i have list all of department from profiles table, then i put detail button to show detail from each department. so when it clicked, it will redirect to the details page of clicked department and show number of employee and its name from details table. is there any suggestion to build query in models for this case? thank you
Look for the join() function on this page: https://codeigniter.com/user_guide/datab...ilder.html
PHP Code: $builder = $db->table('blogs'); |
Welcome Guest, Not a member yet? Register Sign In |