Redirect if page has already been visited
<p>I think I'm stuck and I really hope someone can help me out here.<br/><br/>
So, I'm trying to make something like a quiz application with PHP and JS. The idea is that the user is given a picture with 4 possible answers and he has to guess what's in that picture. User receives x points based on the answer he clicked and gets redirected to the next page, with picture and answers, and so on. There's also a chance for user to skip to the next page. Here's the thing though:
<br/><br/>
How do I check if the user has already answered particular question, so I could redirect him to the next page if this one has already been answered? Basically, it would be like a protection from cheating, so that the user couldn't get more and more points from the same question.<br/><br/>
I'm currently stuck with MySQL solution, to make column for every page, store values there and then compare them when user tries to access particular page, redirecting him based on the stored value. Is it the only solution?<br/><br/>
I'm sorry if my english isn't that good, and I hope you guys can understand my question. :)</p>
