PHP Doku:: Get result data - function.cubrid-db-name.html

Verlauf / Chronik / History: (4) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Datenbankerweiterungen ≥ Anbieterspezifische Datenbankerweiterungen ≥ Cubrid ≥ Cubrid Funktionen ≥ cubrid_db_name

Ein Service von Reinhard Neidl - Webprogrammierung.

Cubrid Funktionen

<<cubrid_data_seek

cubrid_disconnect>>

cubrid_db_name

(PECL CUBRID >= 8.3.1)

cubrid_db_name — Get result data

Beschreibung

string cubrid_db_name ( resource $result , int $index )

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

Parameter-Liste

result

The result pointer from a call to cubrid_list_dbs().

index

The index into the result set.

Rückgabewerte

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

Beispiele

Beispiel #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 = cubrid_num_rows($db_list);
while (
$i < $cnt) {
    echo 
cubrid_db_name($db_list, $i) . "\n";
    
$i++;
}
?>

Siehe auch

  • cubrid_list_dbs() - Returns an array with the list of all existing Cubrid databases


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)