'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => ''), array('key' => '','type' => 'hidden','name' => 'type', 'default' => $typer), array('key' => '','type' => 'hidden','name' => 'id', 'default' => $idr) ),'/index.php'); } ?>
prepare("SELECT * FROM comment WHERE targetType = ? AND targetId = ? ORDER BY date DESC LIMIT ? OFFSET ?"); $stmt->execute([ $typer, $idr, 10, $page * 10 ]); $posts = $stmt->fetchAll(PDO::FETCH_DEFAULT); foreach ($posts as $post) { ?>