added one more wrong choice
added multiple questions. Stored questions in arrays
added used commands
added used commands
Merge branch 'multi'
Added questions and answers to the database. Added 2 files containing information about how to make and populate the database
added radiobuttons instead of error-prone inputfield for questions
questions and answers are now retrieved from the database. (Exercise 7)
added cookies and security such that people cannot answer a question twice or get more points.
 removed answercounting variable. This variable relied on the choices to be stored in order (first choice 1, then choice 2, choice 3, choice 4). Replaced it with the actual choice number of a choice which doesn't rely on choices being perfectly ordered.
Modified index.php to use abstraction layer MDB2 instead of deprecated mysql_ . dbconfig file now only contains configuration, moved connection to the code.
switched back to mysql without abstraction layer because of errors
Added PHP session management. Removed hidden forms and cookies
Session will now expire after a week
added textfile with instructions how to cheat with cookies and why it doesn't work with session management
Added PDO as database abstraction layer. All queries now use PDO
Added security to database connection and to variables that came from the user. Picking no choice will now render an invalid error and gives you the option to retry.
merging
fixed errors caused by merging
added login.php. modified index.php to start with database connection before any html takes place