I have 3 tables in MySQL database:
table team_members
mem_id, mem_name, mem_level
table projects
proj_id, proj_name, task_id, team_members
table tasks
task_id, task_name
team_members field in table projects has a comma separated list of mem_id who are part of the project team (e.g.: 7,11,18,21).
Using PHP, what would be the best way to join the 3 tables to get a list of projects where a member is part of the team, like below:
Project Name, Project ID, Task Name
So if a member with mem_id "11" is logged in, s/he will see a list of projects where s/he is invloved in (i.e., where team_members field contains "11").
Thanks