Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2. $stmt2 = $db->prepare('SELECT comment_sender_name , date, comment FROM blog_posts_seo, blog_comment WHERE blog_posts_seo.postID = blog_comment.postID');
  3. $stmt2->execute(array(
  4. 'comment_sender_name' => $comment_sender_name,
  5. 'date' => $comment_date,
  6. 'comment' => $comment
  7. ));
  8. if ($row['blog_posts_seo.postID'] == $row['blog_comment.postID']) {
  9. echo '<p>' . $comment_sender_name . '</p>';
  10. echo '<p>' . $comment_date . '</p>';
  11. echo '<p>' . $comment . '</p>';
  12. } elseif ($row['blog_posts_seo.postID'] == '')
  13. {
  14. header('Location: ./');
  15. exit;
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement