- ", $answers);
-
- $correct_answers = json_decode($value['correct_answers'], TRUE);
- if(is_null($correct_answers) || empty($correct_answers))
- $correct_answers = "There are no correct answers!";
- else
- $correct_answers = implode(" ", $correct_answers);
-
-
- echo "
";
- }
-
- if (empty($removeZerothIndex)) {
- echo "
You have no questions! Create one!
";
- }
-
- ?>
+
-
-
+ $retVal = searchQuestionsByTeacherID($_SESSION['id']);
+ $retVal = json_decode($retVal,true);
+ $removeZerothIndex = $retVal;
+ unset($removeZerothIndex[0]);
- ", $answers);
+
+ $correct_answers = json_decode($value['correct_answers'], TRUE);
+ if(is_null($correct_answers) || empty($correct_answers))
+ $correct_answers = "There are no correct answers!";
+ else
+ $correct_answers = implode(" ", $correct_answers);
+
+
+ echo "
";
+ }
+
+ if (empty($removeZerothIndex)) {
+ echo "
Get started by creating some questions!
";
+ }
+
+ ?>
+