You are probably already inserting the item into the orderdetails table when it is purchased. You don't have to update any further, you can just check the orderdetails table from your catalog and not display items that have already been sold.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.