Chapter 3. General options

Table of Contents
Database connection
Unique key
Common options
Permission options
Sorting
Navigation
Filters
Triggers
Logging user actions
Languages
CGI variables
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.

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.