Okay, im trying to make a voteing type thing, ill explain what it does:
Theres 3 tables in mysql, one table is a userlist with the id, name, and password of each one.
Theres a table of all the possible_choices with a id, and name.
Now, theres another table named voted with an id, choice_id, and user_id.
Now, the user will log in and vote, but i need to get out every choice out of possible_choices that the user logged in has NOT voted on. Let me explain the set up of the tables a bit more:
userlist is quite simple, just stores the user info. possible_choices is a table with every choice that they can vote on (as long as they have not voted on it before, this brings us to our next point)
voted has 3 feilds, one for the id. Now, choice_id is a CHOICE out of possible_choices, and user_id is a USER out of the userlist. If user "1" voted for choice "1" then there will be a entry in the db with "x, 1, 1" x being the id.
I hope this is clear, if it isnt, please post and tell me why. If you have another way of doing this, please post it.
For recap: Every user from userlist gets to vote on every choice in possible_choices as long as they havent voted before (stored in voted).
Also, assume the ID of the person logged in is stored in a variable.