survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit 069ad38ff579ec7dbcb1c80a84d547d97167a304
parent 0f7207fabdc1d2808e3f9ec17243d3364c540e31
Author: John Kubach <johnkubach@gmail.com>
Date:   Wed, 19 Dec 2018 14:18:53 -0500

fix survey mysql insert

on new survey creation, the correct format is now used for insertion into the type column

Diffstat:
Mwebsite/res/new-survey.php | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/website/res/new-survey.php b/website/res/new-survey.php @@ -34,7 +34,7 @@ if (isset($_POST['submit'])) { type, number_questions, creation_date, expiration_date, one_shot) VALUES ($uid, '$code', '$title', '$user', '$description', - $type, '$number_questions', '$date', '$sql_expire', + b'$type', '$number_questions', '$date', '$sql_expire', $one_shot);"; mysqli_query($connect, $sql) or die(mysqli_error($connect)); @@ -52,5 +52,4 @@ if (isset($_POST['submit'])) { exit(); } } - ?>