Reacties'."\n"; if ($_POST) { try { $html = nl2br(htmlspecialchars($_POST['reply'])); $html = "
$html
"; $query = $Db->prepare('INSERT INTO comments (page, message, author) VALUES (?, ?, ?)'); $query->execute([ $Page, $html, $User->login ]); if (!$query->rowCount()) { throw new Exception('Fout bij opslaan'); } $_POST['reply'] = NULL; } catch (Exception $e) { print 'Antwoord niet opgeslagen.
'."\n\n"; } } $query = $Db->prepare('SELECT * FROM comments WHERE page = ? ORDER BY created'); $query->execute([$Page]); print '%s\n", $row->message); print "