From fc8bde55e8257fd3a6cba57e527afad500add344 Mon Sep 17 00:00:00 2001 From: Peter Edmond Date: Sat, 12 Jul 2025 09:34:14 +0100 Subject: [PATCH] Changed Q3 to match with QID71 --- db.php | 2 +- getQuestionsData.php | 4 ++-- setupGroups.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db.php b/db.php index 28ad2c4..5f57366 100644 --- a/db.php +++ b/db.php @@ -143,7 +143,7 @@ $stmt = $pdo->prepare(" } updateResponseQ2($pdo, $value, $responseId); } - if ($qid == "QID70"){ + if ($qid == "QID71"){ if ($value === 'null' || is_null($value)) { $value = 0; } diff --git a/getQuestionsData.php b/getQuestionsData.php index d75ac2e..ffaa617 100644 --- a/getQuestionsData.php +++ b/getQuestionsData.php @@ -84,7 +84,7 @@ if (isset($data['result']['elements']) && is_array($data['result']['elements'])) foreach ($data['result']['elements'] as $element) { if (isset($element['QuestionID'])) { - /* if (isset($element['QuestionID']) && $element['QuestionID'] === "QID70") { + /* if (isset($element['QuestionID']) && $element['QuestionID'] === "QID71") { //echo json_encode($element, JSON_PRETTY_PRINT) . PHP_EOL; }*/ @@ -105,7 +105,7 @@ if (isset($data['result']['elements']) && is_array($data['result']['elements'])) echo "ID: $index, Display: " . $choice['Display'] . "
"; } } - if (isset($element['QuestionID']) && $element['QuestionID'] === "QID70") { + if (isset($element['QuestionID']) && $element['QuestionID'] === "QID71") { echo "Survey: {$surveyId}, QuestionID: {$element['QuestionID']} : "; echo "Description: {$element['QuestionDescription']} : 0 ". PHP_EOL; insertOption($surveyId, 3, 0, $element['QuestionDescription'], $pdo); diff --git a/setupGroups.php b/setupGroups.php index c633c48..78ad8a5 100644 --- a/setupGroups.php +++ b/setupGroups.php @@ -36,7 +36,7 @@ try { $qidToColumn = [ 'QID68' => 'Q1', 'QID69' => 'Q2', - 'QID70' => 'Q3' + 'QID71' => 'Q3' ]; $totalUpdated = 0;