So I am making a secret santa program that when you click the button draw it will
- check to see if the person who is drawing does not match the person drawn
- check to see if the person who is drawn has not already been drawn
- check to see if the person drawing has not already drawn before
I have 1 & 2 down but I am not sure how to approach #3.
The basic idea is test a column (called giftfirst) to see if there is a value that matches the drawn name, and the table is called list.
Any additional information you need go ahead and ask.
Place a
$_COOKIEin client’s machine and check if it is present then he hasalready drawn before.