\n"; if ($_GET['action'] == 'question') { echo "

" . $board[$category][$number]['q'] . "

\n"; echo "

(The correct response for " . $board[$category][$number]['v'] . ")

\n"; } else { echo "

" . $board[$category][$number]['a'] . "

\n"; echo "

(back to game board)

\n"; } echo "\n"; } else { //display game board echo "\n"; echo " \n"; foreach ($board as $category => $questions) { $categories[] = $category; echo " \n"; } echo " \n"; for ($i = 0; $i < 10; $i++) { echo " \n"; foreach ($categories as $category) { if (isset($board[$category][$i])) { echo " \n"; } else { echo " \n"; } } echo " \n"; } echo "

$category

" . $board[$category][$i]['v'] . "
\n"; } ?>