Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $stmt2 = $db->prepare('SELECT comment_sender_name , date, comment FROM blog_posts_seo, blog_comment WHERE blog_posts_seo.postID = blog_comment.postID');
- $stmt2->execute(array(
- 'comment_sender_name' => $comment_sender_name,
- 'date' => $comment_date,
- 'comment' => $comment
- ));
- if ($row['blog_posts_seo.postID'] == $row['blog_comment.postID']) {
- echo '<p>' . $comment_sender_name . '</p>';
- echo '<p>' . $comment_date . '</p>';
- echo '<p>' . $comment . '</p>';
- } elseif ($row['blog_posts_seo.postID'] == '')
- {
- header('Location: ./');
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement