Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>My Blog</title>
- <link rel="stylesheet" href="style/style.css">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
- </head>
- <body>
- <div class="container">
- <h1>My Blog</h1>
- <div>
- <?php foreach($articles as $a) : ?>
- <div class="article">
- <h3><a href="article.php?id=<?=a['id']?>"><?=$a['title']?></a></h3>
- <em>Опубликовано: <?=$a['date']?></em>
- <p><?=$a['content']?></p>
- </div>
- <?php endforeach ?>
- </div>
- <div>
- <footer>
- <p>My Blog <br>Copyricht © 2016</p>
- </footer>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement