</header> <section> <aside> <?php //Here I will post the original post and then have the comment form below that... $blogs = get_page_by_id($_GET['id'], $_COOKIE['friendly']); //heading echo "<div class=\"content\"><h2>" . $blogs['page_name'] . "</h2>"; //author and date echo author_date($blogs['date'], $blogs['author']); //content echo $blogs['content']; //tag area: the fucntion will get all of the individual strings from the tag field echo '<p><span class="small">Tags: '; echo explode_tags($blogs['tags']); echo '</span></p>'; //comments echo post_comments($blogs['id']); ?> <form id= "add_blog" method= "post"> <fieldset> <label for= "comment" type= "text"><strong>Comment: </strong></label> <textarea name="comment" class="comment" tabindex= "20" style= "resize: none; width: 490px; height: 480px; margin-top: 7px;"></textarea> <br /> <br /> <input type= "submit" name= "submit" value= "Post your comment" style="width: 350px; display: block; margin: 0 auto; font-weight: bold;"/> </fieldset> </form>
echo "<p><em>Your search for Blog posts tagged with the word/phrase: \"<strong>{$_GET['tag']}</strong>\" did not return any results.</em></p> \n<hr /> \n"; } else { echo "<div class=\"content\"><h2>Search Results: </h2>\n" . "<p>Blogs tagged with <strong>" . $_GET['tag'] . "</strong></p> \n"; echo "<hr style = \"color:black; background: black; border: none; height: 3px;\" /> \n</div> \n"; } $counter = 1; while ($blogs = mysql_fetch_array($tagged_blogs)) { //this if statement will only allow for the first 3 to be fully displayed if ($counter < 4) { echo "<div class=\"content\"><h2>" . $blogs['page_name'] . "</h2>\n"; //author and date echo author_date($blogs['date'], $blogs['author']); //content echo $blogs['content'] . "\n"; //tag area: the fucntion will get all of the individual strings from the tag field echo "<p><span class=\"small\">Tags: " . explode_tags($blogs['tags']) . "</span></p> \n"; //this will post the comments if they exist echo post_comments($blogs['id']); // the user to the comment or login page depending on log in status echo add_comment($_SESSION['update_authority'], $blogs['id']); echo "</p>\n"; echo "<hr/>\n"; if ($counter == 3 && $number_returned != 3) { echo '<div class= "content"><h3>Older Posts containing the tag: <em>' . $_GET['tag'] . "</em></h3> \n"; } $value++; $counter++; } else { echo "<h3><a href = \"index.php?page=" . $blogs['id'] . "\">" . $blogs['page_name'] . "</a></h3>\n"; //author and date $date = date("n/j/Y", strtotime($blogs['date']));