I have a MySQL database table with multiple choice questions and want to add a quiz to an existing website. One round of the quiz would mean pulling 20 random questions from a selected category and answer the questions one by one. The faster a correct answer is given, the more points you get. To prevent cheating I don't want the correct answer to be revealed in the page source code.

Any ideas on how I can do this the easy way. My plan is to use JavaScript for the Quiz. To check the answers without revealing the correct answer in the page source code I thought AJAX could be a solution but I have never used AJAX. I have built the site using PHP and MySQL and a little JavaScript but I'm a beginner at this so before I before I start building the quiz I'm looking for some advice on what technique to use.

Thank you in advance for any advice on this.