Регистрация Войти
Войти через VK Войти через FB Войти через Google Войти через Яндекс
Войти через VK Войти через FB Войти через Google Войти через Яндекс
Поиск по сайту
cubrid_db_name
(PECL CUBRID >= 8.3.1)
cubrid_db_name — Get db name from results of cubrid_list_dbs
Описание
string cubrid_db_name ( array $result , int $index )Retrieve the database name from a call to cubrid_list_dbs().
Список параметров
result -
The result pointer from a call to cubrid_list_dbs().
index -
The index into the result set.
Возвращаемые значения
Returns the database name on success, and FALSE on failure. If FALSE is returned, use cubrid_error() to determine the nature of the error.
Примеры
Пример #1 cubrid_db_name() example
error_reporting(E_ALL);
$conn = cubrid_connect('dbhost', 33000, 'demodb', 'username', 'password');
$db_list = cubrid_list_dbs($conn);
$i = 0;
$cnt = cubrid_num_rows($db_list);
while ($i < $cnt) {
echo cubrid_db_name($db_list, $i) . "\n";
$i++;
}
Смотрите также
- cubrid_list_dbs() - Return an array with the list of all existing CUBRID databases
Описание на ru2.php.net
Описание на php.ru