Insert data into database by ajax and php?

open your browser’s dev tools, go to the network section, click the rate and then check the details of the AJAX request/response there. this way you can be sure.