[Solved] Incrementing and resetting a PHP session variable
You write PHP in the middle of some JavaScript functions as if you expect it to be executed by the JavaScript itself. If you remove the HTML/JS output, you can see what actually happens on the server as soon as you load the page (I assume your code snippets are in order): session_start(); if (!isset($_SESSION[‘score’])) … Read more