'mysql', 'dbsyntax' => 'mysql', 'username' => DB_USER, 'password' => DB_PASS, 'hostspec' => DB_HOST, 'database' => DB_NAME, 'port' => DB_PORT ); $this->connect($dsn); // Test connection; display "gone fishing" on failure. if (DB::isError($this->db)) { die('Unable to connect to database. Try again in a few minutes.'); } } } /** * Set global variables. */ $db = new Survey_SQL(); $app = new Survey(); /** * Set up arrays to hold cleaned inputs. */ $clean = array(); $html = array(); $sql = array(); ?>