Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>PHP-2. Homework 2</h2>
- <h4>News</h4>
- <a href="/index.php">Перейти на страницу новостей</a>
- <hr>
- <?php foreach ($news as $article): ?>
- <article>
- <h3><?php echo $article->title; ?></h3>
- <p><?php echo $article->content; ?></p>
- <form action="/edit.admin.php" method="post">
- <input type="hidden" name="article_id" value="<?php echo $article->id; ?>">
- <button type="submit">Редактировать</button>
- </form>
- <form action="/delete.admin.php" method="post">
- <input type="hidden" name="article_id" value="<?php echo $article->id; ?>">
- <button type="submit">Удалить</button>
- </form>
- </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement