Redirecting to https://www.codeproject.com/questions/1084176/how-to-call-php-function-from-ajax
Or
Click here