PHP Code to add a new product and delete a existing product
Implement AJAX Programming based solutions to write a code to:
1. Add a new product to the database.
2. Delete an existing product from the database In the AJAX scripts you create, refer to the DSN datasource as flamingo. Even though its not in your own folder or directory, it has been set up as a SYSTEM DSN, so your AJAX script will have access to it.
You should also consider how to validate the requests, i.e. don't delete a record that's not there and don't add a product with an existing code)