The code looks like it would work to me. Does the other insert and update code work correctly?
If you post a URL, steps to reproduce, and give me FTP access I can debug it and try to figure it out.
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.