Connection(); $post = null; if(isset($_POST['edit'])){ $get_post = "SELECT name, title, content, status, comments, added_at, updated_at FROM posts WHERE id_post = {$_POST['edit']}"; $res_post = mysqli_fetch_row(mysqli_query($conn, $get_post)); $post = [ "Nazwa" => $res_post[0], "Tytuł" => $res_post[1], "Treść" => $res_post[2], "Status" => $res_post[3], "Komentarze" => $res_post[4], "Dodano" => $res_post[5], "Zaktualizowano" => $res_post[6] ]; } ?> Panel <?php echo BLOG_TITLE ?>

Dodawanie posta

>