echo "Error has occured while drop table Record</p>"; } // Drop Setting table echo "<p>Drop table Setting if exist<br/>"; if (CSettingManager::DropTable()) { echo "Table Setting is droped</p>"; } else { echo "Error has occured while drop table Setting</p>"; } //********************* // CREATE TABLE //********************* echo "<p>Creating table...</p>"; echo "<p>"; // Create Category table if (CCategoryManager::CreateTable()) { echo "Created <b>Category</b> table<br/>"; } else { echo "Error has occured while create table Category<br/>"; } // Create Detail table if (CRecordManager::CreateTable()) { echo "Created <b>Record</b> table<br/>"; } else { echo "Error has occured while create table Record<br/>"; } // Create Setting table if (CSettingManager::CreateTable()) { echo "Created <b>Setting</b> table<br/>"; } else { echo "Error has occured while create table Setting<br/>";