query("SELECT * FROM manual_quizzes WHERE id = $quiz_id"); if ($quiz->num_rows == 0) { die("Quiz not found."); } $quiz = $quiz->fetch_assoc(); ?>