So I am working on a registration system for the place I worked at this summer. I have a system where they can “add” things to a basket, but I figured that I also will need to give them the option to delete those items if they so wish. My question comes in here, is there a way to delete a record from the database and update the page in real time? I am using PHP, MySQL, and jQuery.
Share
Adarsh is correct, use an Ajax post:
basic example of your cart page off the top of my head using jQuery:
Then create the deleteScript.php page to handle the database interaction based on the deleteID you just posted to it.