I am having a problem with my code as my php variable is not being echoed on page when using ajax jquery. Here is my code...
You missed response in success function. Try this: