when the add to cart button is pressed, it will run PHP code that will communicate with the database to return the selected item.
before you can add the add to cart button to your page, you first need to create a connection using Dreamweaver, In the connection you will set which database is used. You then need to create a recordset, this will select which table in the database is used.
When you add the add to cart from recordset behavior, you will need to specify which recordset it will add from.