I need a table that lists challenges and then to the right lists "completed" or "uncompleted"
Currently I have 3 tables. the first is Members, in this table I have Member_Names.
my 2nd table is called challenges. It has a Challenge_Name column and a Challenge_Description.
In my 3rd and final table called completed_challenges_junction I have a Member_Names and a Challenge_Name.
This lists who has completed what challenge.
Now for the hard part.
In my php I need a way to get the vales from the challenges table on the left and then I need it to look through the completed_challenges_junction to see if that member name appears then display complete. I can get it to display the values of the challenges table like I want it to but I can't get it to show complete or not. Also in my sql statements I have been using WHERE Member_Names='$_SESSION[username]' so I have no problem searching for the specific user.
Any help is much appreciated.
Currently I have 3 tables. the first is Members, in this table I have Member_Names.
my 2nd table is called challenges. It has a Challenge_Name column and a Challenge_Description.
In my 3rd and final table called completed_challenges_junction I have a Member_Names and a Challenge_Name.
This lists who has completed what challenge.
Now for the hard part.
In my php I need a way to get the vales from the challenges table on the left and then I need it to look through the completed_challenges_junction to see if that member name appears then display complete. I can get it to display the values of the challenges table like I want it to but I can't get it to show complete or not. Also in my sql statements I have been using WHERE Member_Names='$_SESSION[username]' so I have no problem searching for the specific user.
Any help is much appreciated.