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."; +} + +?>