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 = 'yes' 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 goedgekeurd."; } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet goedgekeurd."; } } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet goedgekeurd."; } } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet goedgekeurd."; } } else { echo "Er is een onherstelbare fout opgetreden. De reactie is niet goedgekeurd."; } ?>