I changed the Prepare statement to include the error which lead me to error 1064.
Took the single quotes off of the Field Names, and it started working.
Adding the below IF statement is HUGE to see the errors.
$database = "Survey";
$db_found = new mysqli('localhost', 'survey', 'survey', $database); $db_found->set_charset("utf8");
if (!$db_found) { echo "Error: db connection = false"; } else { $SQL_INSERT = "INSERT INTO Answers (QuestionID, PlayerID, Answer, Option) VALUES (?,?,?,?)"; $stmt = $db_found->prepare($SQL_INSERT);
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.