db->query($sql); echo "āœ… Table " . db_prefix() . "deskmoloni_mapping created successfully!\n"; } catch (Exception $e) { echo "āŒ Error creating table: " . $e->getMessage() . "\n"; } // Check if table exists $query = $CI->db->query("SHOW TABLES LIKE '" . db_prefix() . "deskmoloni_mapping'"); if ($query->num_rows() > 0) { echo "āœ… Table exists and is ready!\n"; // Show table structure $structure = $CI->db->query("DESCRIBE " . db_prefix() . "deskmoloni_mapping"); echo "\nšŸ“‹ Table structure:\n"; foreach ($structure->result() as $column) { echo " - {$column->Field}: {$column->Type}\n"; } } else { echo "āŒ Table was not created properly!\n"; } echo "\nDone!\n";