query_fetchDB(" SELECT comment_post FROM ot_comments WHERE id = '" . $_GET['comment'] . "' ORDER BY id DESC LIMIT 1 "); if($Comment) // Comment exists? { $DB->query_execDB(" UPDATE ot_comments SET comment_status = 'no' WHERE id = '" . $_GET['comment'] . "' LIMIT 1 "); $DB->query_execDB(" UPDATE ot_posts SET post_comments = post_comments -1 WHERE id = '" . $Comment['0']['comment_post'] . "' LIMIT 1 "); echo "De reactie werd met succes verwijderd."; } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet verwijderd."; } } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet verwijderd."; } } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet verwijderd."; } } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet verwijderd."; } ?>