Try the following PHP and tell us what it outputs, if anything.
PHP Code:
$sql = "SHOW TABLES LIKE 'cms_%'";
$query = mysql_query($sql);
$rows = array();
while($row = mysql_fetch_array($query)) {
$rows[] = substr($row[0], 4);
}
if (count($rows) == 0) {
echo 'No tables matching <strong>cms_</strong>...';
} else {
echo implode('<br>', $rows);
}