I have a variable "username" in javascript and I want to pass that variable as a parameter in my query to check if that "username" exists in my sql table. I know I have to use AJAX as a bridge between javascript and php to do this but I just find general responses.
Can anyone help me how can I do this?