commit 795d699a24c34639d5f2c2467f998402de2c695a
parent f37d001ad97a737f1204d82579317407b5712994
Author: John Kubach <johnkubach@gmail.com>
Date: Wed, 19 Dec 2018 17:52:12 -0500
survey delete update
admin can now delete yes / no surveys
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/website/res/delete-survey.php b/website/res/delete-survey.php
@@ -19,6 +19,7 @@ if (isset($_POST['delete-survey'])) {
$row = mysqli_fetch_assoc($result);
$sid = $row['survey_id'];
$deleteAnswers ="DELETE FROM answer_numeric WHERE survey_id=$sid;";
+ $deleteAnswers ="DELETE FROM answer_bool WHERE survey_id=$sid;";
$deleteQuestions ="DELETE FROM question WHERE survey_id=$sid;";
$deleteSurvey ="DELETE FROM survey WHERE survey_id=$sid;";