05.03.2013 Views

User Guide - NetObjects Fusion

User Guide - NetObjects Fusion

User Guide - NetObjects Fusion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 30 Publishing Dynamically from a Database<br />

Oracle.<br />

When not using a Data Source, a connection to the database is established by a<br />

connection string. A connection string for Microsoft Access and SQL Server<br />

databases consists of a combination of parameters separated by semicolons.<br />

Creating a custom connection for PHP<br />

PHP sites typically operate on Linux or Unix hosting platforms and use MySQL<br />

databases. Therefore, custom connection creation for PHP pages in <strong>NetObjects</strong><br />

<strong>Fusion</strong> is optimized for connecting PHP to MySQL databases. However, it is<br />

possible to connect to a database other than MySQL using PHP components by<br />

using a DSN connection as described in “Establishing a DSN Connection” on<br />

page 769.<br />

The following process creates a custom connection to MySQL.<br />

1. In the Connector dialog, enter the network information for the server hosting<br />

the MySQL database. If the database is hosted on the local machine, enter<br />

“localhost”.<br />

2. Select “MySQL” for the Engine field.<br />

3. Enter the name of the database in the Database field.<br />

4. Enter the user name in the <strong>User</strong> field.<br />

5. Enter the user password in the Password field.<br />

6. Click Test to check your connection.<br />

If the Test fails, it may be for one of the following reasons:<br />

Select Custom<br />

String as the<br />

connection type.<br />

771

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!