1. update the database similar to below:
INSERT INTO collection (user_id, item_id)
VALUES ($_SESSION[id], $_GET[id])
... where $_SESSION[id] is the ID of the logged on user and $_GET[id] is the item that is being marked as part of the user's collection.
2. If the tickbox is already ticked and they wish to remove it from their collection it would instead do:
DELETE FROM collection WHERE user_id = $_SESSION[id] AND item_id = $_GET[id] LIMIT 1
3. The tickbox image should automatically update to ticked or unticked status according to whether it is in the user's collection after the onclick trigger.
IMPORTANT: This should be done without reloading the page (presumably by AJAX.)
Examples of similar functionality can be found at Amazon (you can add items to your wishlist in this way) or at www.icheckmovies.com.
Access to our web code will be made available to successful bidder via Plesk.
The rest of this page is already written - this is simply adding the above functionality. I will create a suitable MySQL table in advance.
20 freelancers are bidding on average $89 for this job
Hello sir i am an ajax expert and a dedicated developer.i am ready to work for [url removed, login to view] task would be done easily and results wouls be satisfactory. With regards pundoravikas
i have 3 years of experience to data update insert and detete with simple and class wise in php with mysql I able to finish your Works ASAP and your requirement wise
Extended experience with debugging, maintaining and upgrading complex and high profile websites. I request no payment upfront. I request the payment at the end of the project.