From 4aeb8c37b69ae838003b3c381c13d6418233f0ab Mon Sep 17 00:00:00 2001 From: Peter Edmond Date: Sat, 31 May 2025 00:45:40 +0100 Subject: [PATCH] Collecting the bespoke questions for selection against - Need to insert this into the filters database --- getQuestionsData.php | 72 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 getQuestionsData.php diff --git a/getQuestionsData.php b/getQuestionsData.php new file mode 100644 index 0000000..7fed309 --- /dev/null +++ b/getQuestionsData.php @@ -0,0 +1,72 @@ +". PHP_EOL; + + if (isset($element['QuestionID']) && $element['QuestionID'] === "QID70") { + + //echo json_encode($element, JSON_PRETTY_PRINT) . PHP_EOL; + } + if (isset($element['QuestionID']) && $element['QuestionID'] === "QID68") { + echo json_encode($element['QuestionDescription'], JSON_PRETTY_PRINT) . PHP_EOL; + echo json_encode($element['Choices'], JSON_PRETTY_PRINT) . PHP_EOL; + } + if (isset($element['QuestionID']) && $element['QuestionID'] === "QID69") { + echo json_encode($element['QuestionDescription'], JSON_PRETTY_PRINT) . PHP_EOL; + echo json_encode($element['Choices'], JSON_PRETTY_PRINT) . PHP_EOL; + } + if (isset($element['QuestionID']) && $element['QuestionID'] === "QID70") { + echo json_encode($element['QuestionDescription'], JSON_PRETTY_PRINT) . PHP_EOL; + echo json_encode($element['Choices'], JSON_PRETTY_PRINT) . PHP_EOL; + } + } + } +} else { + echo "No elements found."; +} + +?>