getDataBaseTableCreationQueries(); foreach($queries as $sql) { // Create a new SQL query: $result = $this->db->sqlQuery($sql); // Stop if an error occurs: if($result->error()) { echo $result->getError(); die(); } } if($printSuccessConfirmation) { // Print a success confirmation: echo 'Database tables created successfully - please delete this file (install.php).'; } } } // Initialize the chat installer: $ajaxChatInstaller = new CustomAJAXChatInstaller(); // Create the database tables: $ajaxChatInstaller->createDataBaseTables(); ?>