"; $topic = filter_input(INPUT_GET, 'topic', FILTER_SANITIZE_STRING, FILTER_NULL_ON_FAILURE); $section = filter_input(INPUT_GET, 'section', FILTER_SANITIZE_STRING, FILTER_NULL_ON_FAILURE); if ($topic) { $helps = $db->get_Help($topic); if (is_array($helps) && count($helps) && isset($helps['section'])) { $helps = [0 => $helps]; } foreach ($helps as $key => $help) { print ""; if (preg_match('/^[A-D]$/', $help['section'])) { print "Appendix "; } print "{$help['section']} - {$help['title']}
"; print "
" . $help['content'] . "

Top
"; } } elseif (strlen($section)) { $help = $db->get_Help($section); print "{$help['section']} - {$help['title']}
"; print "
{$help['content']}
"; }