AJAX can only send data, PHP itself will have to save it to the database. Can you post your code so we can understand what you are doing?