downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

cubrid_errno> <cubrid_data_seek
[edit] Last updated: Fri, 26 Apr 2013

view this page in

cubrid_db_name

(PECL CUBRID >= 8.3.1)

cubrid_db_nameGet db name from results of cubrid_list_dbs

Description

string cubrid_db_name ( array $result , int $index )

Retrieve the database name from a call to cubrid_list_dbs().

Parameters

result

The result pointer from a call to cubrid_list_dbs().

index

The index into the result set.

Return Values

Returns the database name on success, and FALSE on failure. If FALSE is returned, use cubrid_error() to determine the nature of the error.

Examples

Example #1 cubrid_db_name() example

<?php
error_reporting
(E_ALL);

$conn cubrid_connect('dbhost'33000'demodb''username''password');
$db_list cubrid_list_dbs($conn);

$i 0;
$cnt count($db_list);
while (
$i $cnt) {
    echo 
cubrid_db_name($db_list$i) . "\n";
    
$i++;
}
?>

See Also



add a note add a note User Contributed Notes cubrid_db_name - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites