You have come from a wrong source to this page.

"; //exit; $commentid = ""; } if (isset($_POST['replyid'])) {$replyid = $_POST['replyid'];} elseif (isset($_GET['replyid'])) {$replyid = $_GET['replyid'];} else { //echo "

You have come from a wrong source to this page.

"; //exit; $replyid = ""; } ######################################################################################## $q_del_comm = mysql_query("DELETE FROM comments WHERE CommentID = '$commentid'", $conn); if ($replyid !== "") { $q_del_reply = mysql_query("DELETE FROM comments_replies WHERE CommentID = '$commentid'", $conn); if ($q_del_comm && $q_del_reply) { $_SESSION['message'] = "

Comment and associated reply deleted successfully

"; header("Location: ../comments.php"); } } else { if ($q_del_comm) { $_SESSION['message'] = "

Comment deleted successfully

"; header("Location: ../comments.php"); } } ######################################################################################## ?>