PHP Doku:: Returns an array with the list of all existing Cubrid databases - function.cubrid-list-dbs.html

Verlauf / Chronik / History: (47) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenCubridCubrid Funktionencubrid_list_dbs

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Cubrid Funktionen

<<cubrid_is_instance

cubrid_load_from_glo>>

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturns an array with the list of all existing Cubrid databases

Beschreibung

array cubrid_list_dbs ( resource $conn_identifier )

This function returns an array with the list of all existing Cubrid databases.

Parameter-Liste

conn_identifier

The CUBRID connection. If the connection identifier is not specified, the last link opened by cubrid_connect() is assumed.

Rückgabewerte

An numeric array with all existing Cubrid databases; on success.

FALSE on failure.

Beispiele

Beispiel #1 cubrid_list_dbs() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    echo 
"CUBRID databases:<br>";
    
print_r(cubrid_list_dbs($link));
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

Result:
CUBRID databases:
Array ( [0] => demodb2 [1] => cubrid3 )

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
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",...)