Sorry, probably a stupid code error, but my website is failing to insert the data into the database. From submit.php:
$questionID = 2;
$connection = mysqli_connect("localhost", "root", "password", "db_name");
mysqli_query($connection, "INSERT INTO data ('questionID') VALUES ('$questionID')");
My table is called 'data' and the first field is named 'questionID' and is of type int.