getConnection() ->executeQuery("SHOW TABLES LIKE '$db_c_prefix$db_prefix%'") ->rowCount(); echo $countOfTables; break; case 'remove_crs_tables': $statement = $manager ->getConnection() ->executeQuery("SHOW TABLES LIKE '$db_c_prefix$db_prefix%'"); while ($table = $statement->fetch(PDO::FETCH_NUM)) { $manager->getConnection()->executeQuery("DROP TABLE {$table[0]}"); } break; default: break; }