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.
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.