num_rows; if($rowcount == 0) { header("location: ./admin/applications"); exit(); } echo "asd"; $result2 = mysqli_fetch_array($result, MYSQLI_ASSOC); $master = $result2['master']; $char_name = $result2['char_name']; mysqli_free_result($result); $data = date("d-m-Y h:i:s"); $user_check_query = "UPDATE application SET `status` = '2', `accepted` = '0', `reason` = '$verdict', `date_of_verdict` = '$data' WHERE `id` = '$app_id' LIMIT 1"; $result = mysqli_query($link, $user_check_query); mysqli_free_result($result); $user_check_query = "UPDATE accounts SET `answered_questions` = '0' WHERE `ID` = '$master' LIMIT 1"; $result = mysqli_query($link, $user_check_query); mysqli_free_result($result); $masterrr = returnMaster($link, $master); $body = "Dear $masterrr,

Your character application for $char_name has been denied for the following reason: $clean_verdict.

Please switch to your character for more details.

Regards,
Legacy Role Play"; insertNotification($link, $master, "Character Application", $body, $username); //Discord_AlertStaff("$username has denied character application **#$app_id** for '$clean_verdict'."); header("location: ./admin/application/$app_id"); ?>