Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once('resources/init.php');
- $posts = get_posts();
- ?>
- <html>
- <head>
- <title>Helge Sverre's Blog!</title>
- <style type="text/css">
- #remove {
- position:absolute;
- top:50px;
- left:70px;
- display:none;
- }
- A:link {text-decoration:none;color:black;}
- A:visited {text-decoration:none;color:black;}
- A:active {text-decoration:none;color:black;}
- A:hover {text-decoration:underline;color:gray;}
- #content {
- border:1px solid black;
- position:absolute;
- top:80px;
- left:10px;
- padding:10px;
- width:578px;
- height:500px;
- margin:0px;
- }
- </style>
- </head>
- <body>
- <table border="0" cellspacing="0px" cellpadding="5px">
- <tr>
- <td><h1>Helge Sverre's Blog!</h1></td>
- <td><a href="index.php">Index</a></td>
- <td><a href="add_post.php">Add Post</a></td>
- <td><a href="add_category.php">Add Category</a></td>
- <td><a href="category_list.php">Category List</a></td>
- </tr>
- </table>
- <div id="content">
- <?php
- foreach ($posts as $post) {
- if (!category_exists("name", $post['name'])) {
- $post['name'] = "Uncategorised";
- }
- ?>
- <h2><a href="index.php?id=<?php echo $post['post_id']; echo mysql_error(); ?>"><?php echo $post['title']; echo mysql_error(); ?></a></h2>
- <?php
- }
- ?>
- </div>
- </body>
- </html>
- <div id="remove">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement