Want complete code how to store data in mysql with ajax

i want a complete code how to store data in mysql with ajax as a name and email id

Plenty of sample code out there, I would search for something similar and modify it to suit your needs. Have you been through any of the ajax tutorials, do they not offer any advice on how to achieve your requirement?