Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Completion Table with PHP and MySQL

$
0
0
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.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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