PHP Code to add the new product and delete existing product. Execute AJAX Programming based solutions to write a code to:
1. Add the new product to the database.
2. Delete the existing product from the database
In AJAX scripts you create, refer to DSN datasource as flamingo. Although its not in your own folder or directory, it has been set up as SYSTEM DSN, so your AJAX script will have access to it.
You must also consider how to authenticate requests, i.e. do not delete record that is not there and do not add product with existing code.