CON JAVASCRIPT
Server and database configuration: You will need to have a web server configured with support for your chosen server language and a DBMS installed and configured.
Establishing a connection to the database: On the server side, you will use the server language to establish a connection to the database using the appropriate credentials.
Create a server script: You will use the server language to create a script that handles Ajax requests. This script will take care of receiving the data sent by Ajax, executing queries or commands in the database and sending the response back to the client.
Making Ajax requests from the client: On the client side, you will use JavaScript and Ajax to send requests to the server script. This can include sending data to perform inserts or updates to the database, as well as sending requests to retrieve specific data.
Process the response on the client: Once the response is received from the server, you can process it in JavaScript to update the user interface according to the data received.