2-player game

Hi,

I’m building a quiz website using PHP, JavaScript and MySQL. The site is a 1-player quiz game but I also want to add a simple 2-player game. The game will have the two following game modes.

  1. 2 users are shown the same multiple choice question and the one who answers quickest wins.
  2. 2 users are shown the same multiple choice question but only one can answer it. Next question goes to the other player.

I also need to add functionality so that players can meet and start a game.

I have tried to find information regarding this and there seems to be many possible solutions but as I don’t know anything at all apart from PHP, JacaSript and MySQL I’m having trouble understanding which way to go. I would be grateful if someone could tell me which solution would be the easiest for someone who needs to start learning from the beginning.

Many thanks