Your best bet would be to use PHP as your server language.
on the Dreamweaver Simulations tab of the training Resources page, see the "Setting up your site for dynamic development" Tutorial.
resources.php
You will also want to look into the Web development - Before you begin tutorial:
web_dev_begin.pdf