Your problem isn't related to WAMP or your Live Connection. The placement of the security Assist code is a WebAssist problem. I have the same problem every single time. I have to find that block of code in the code view and cut it out and paste it back in where its really suppose to go. Happens 100% of the time so I am quick at it now. ;-)
The problem with connecting to your server is a problem in your Dreamweaver Site definition in most cases. Its also not likely that your database connection info will be the same on your remote server as it was on WAMP either.
Your connection info and site setup instructions can be found here to get it to display on your Live Server.
?view=gettingstarted
Brad