Connecting to the sample database (PHP) 315
Uploading the sample files
After specifying a folder to process dynamic pages, upload the sample files
to the web server. You must upload the files even if the web server is
running on your local computer.
If you don’t upload the files, features such as Live Data view and Preview in
Browser may not work properly with dynamic pages. For example, image
links might be broken in Live Data view because the image files are not on
the server yet. Similarly, clicking a link to a detail page while previewing a
master page in a browser will cause an error if the detail page is missing
from the server.
To upload the samples files to the web server:
1. In the Files panel (Window > Files), select the root folder of the site in
the Local View pane.
The root folder is the topmost folder in the list.
2. Click the blue Put Files arrow icon in the Files panel toolbar, and
confirm that you want to upload the entire site.
Dreamweaver copies all the files to the web server folder you defined in
“Defining a remote folder” on page 313.
The Dreamweaver site is now defined. The next step is to connect to the
sample database installed with Dreamweaver.
Connecting to the sample
database (PHP)
During installation, Dreamweaver copies a SQL script to your hard disk.
You can use this script to automatically create a sample MySQL database.
This section describes how to create a connection to the sample database.
This section assumes you have installed and configured MySQL on your
local or remote computer. To download and install the database system,
visit the MySQL website at www.mysql.com.