php man page for cubrid_db_name

Query: cubrid_db_name

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CUBRID_DB_NAME(3)							 1							 CUBRID_DB_NAME(3)

cubrid_db_name - Get db name from results of cubrid_list_dbs

SYNOPSIS
string cubrid_db_name (array $result, int $index)
DESCRIPTION
Retrieve the database name from a call to cubrid_list_dbs(3).
PARAMETERS
o $result - The result pointer from a call to cubrid_list_dbs(3). o $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(3) to determine the nature of the error.
EXAMPLES
Example #1 cubrid_db_name(3) example <?php error_reporting(E_ALL); $conn = cubrid_connect('localhost', 33000, 'demodb', 'dba', ''); $db_list = cubrid_list_dbs($conn); $i = 0; $cnt = count($db_list); while ($i < $cnt) { echo cubrid_db_name($db_list, $i) . " "; $i++; } ?> The above example will output: demodb
SEE ALSO
cubrid_list_dbs(3). PHP Documentation Group CUBRID_DB_NAME(3)
Related Man Pages
cubrid_current_oid(3) - php
cubrid_data_seek(3) - php
cubrid_num_fields(3) - php
cubrid_query(3) - php
cubrid_set_db_parameter(3) - php
Similar Topics in the Unix Linux Community
file wont remove
Removing files
find length of a parameter
sort files
Get Parameter with Shell request