Chapter 3. General options

Table of Contents
3.1. Database connection
3.2. Unique key
3.3. Common options
3.4. Permission options
3.5. Sorting
3.6. Navigation
3.7. Filters
3.8. Triggers
3.9. Logging user actions
3.10. Languages
3.11. CGI variables
3.12. CSS classes policy

Open the script in your text editor. No HTML header or footer is created, thus you may want to include a header at the top of the script, and include a footer at the end of the script.

3.1. Database connection

Various options are configured near the top of the script, most notably the database logon. For security reasons, you may want to copy/paste the logon options to a separate, included file.

MySQL logon options host name, user name, password, database, and table appear in the following format.

Example 3-1. Database connection options

$opts['hn'] = 'localhost';
$opts['un'] = 'username';
$opts['pw'] = 'password';
$opts['db'] = 'database';
$opts['tb'] = 'table';

It is recommended that the first four options shown above be moved to a separate, included file.