prepare("INSERT INTO main.comment (username, targetType, targetId, date, content, id) VALUES (?,?,?,?,?,?)"); $stmt->execute([$username,"root","root",microtime(true) - $ref,$postie,bin2hex(random_bytes(16))]); } page_header(); $form_message = post_handler(); ?>
'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => '') )); } $stmt = $db->prepare("SELECT * FROM comment ORDER BY date DESC"); $stmt->execute([]); $posts = $stmt->fetchAll(PDO::FETCH_DEFAULT); foreach ($posts as $post) { ?>