I'd need to look at line 56, but this error implies that your database connection isn't working or your code is in the wrong order on the page and you have a recordset above the connection.
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.