Redirecting to https://stackoverflow.com/questions/39341901/how-to-call-a-php-function-from-ajax

Or Click here