# Example Prompt Create a single-file, object-oriented PHP script that functions generic data grid for viewing any table in a MySQL database. The script should be self-contained, generating a full HTML page with embedded CSS and JavaScript. The entire functionality must be encapsulated within a single PHP class called `TableView`. **Key Requirements:** **1. Class Structure and Initialization:** - The `TableView` class should handle all logic. - The constructor (`__construct`) will be the main entry point, orchestrating calls to private methods to set up the environment, process user input, and fetch data. - A final public method, `render()`, will be called to output the complete HTML, CSS, and JavaScript. **2. Database and Configuration:** - Use **PDO** for all database interactions to ensure security against SQL injection. - The script must dynamically load database credentials (host, user, password, database) from a configuration file located at `../config/database.txt`. - It should connect to the database by requiring a separate class file: `require_once __DIR__ . '/../lib/database.php';`. - It must be ableto **exclude specific tables** from being displayed (e.g., `beers`, `clients`, `form_options`). **3. Dynamic Table Handling:** - At the top of the page, display an HTML `