<?php use PMA\libraries\Util; ?> <label for="text_dbname"><?= __('Add privileges on the following database(s):'); ?></label> <?php if (! empty($databases)) : ?> <select name="pred_dbname[]" multiple="multiple"> <?php foreach ($databases as $database) : ?> <?php $escapedDatabase = Util::escapeMysqlWildcards($database); ?> <option value="<?= htmlspecialchars($escapedDatabase); ?>"> <?= htmlspecialchars($database); ?> </option> <?php endforeach; ?> </select> <?php endif; ?> <input type="text" id="text_dbname" name="dbname" /> <?= Util::showHint(__('Wildcards % and _ should be escaped with a \ to use them literally.'))?>