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

search for in the

fbsql_list_fields> <fbsql_insert_id
[edit] Last updated: Fri, 25 May 2012

view this page in

fbsql_list_dbs

(PHP 4 >= 4.0.6, PHP 5)

fbsql_list_dbsFrontBase サーバーで利用可能なデータベースの一覧を得る

説明

resource fbsql_list_dbs ([ resource $link_identifier ] )

fbsql デーモンで現在使用可能なデータベースを含む結果ポインタを返します。 この結果ポインタの内容を取得するには fbsql_tablename() 関数を使用します。

パラメータ

link_identifier

fbsql_connect() あるいは fbsql_pconnect() が返す FrontBase リンク ID。

指定しなかった場合は、この関数は FrontBase サーバーでオープンしているリンクを探します。見つからないときは fbsql_connect() に引数を指定せずにコールしたときと同様にして作成します。

返り値

結果ポインタあるいはエラー時に FALSE を返します。

例1 fbsql_list_dbs() の例

<?php
$link 
fbsql_connect('localhost''myname''secret');
$db_list fbsql_list_dbs($link);

while (
$row fbsql_fetch_object($db_list)) {
    echo 
$row->Database "\n";
}
?>

上の例の出力は、 たとえば以下のようになります。

database1
database2
database3
...

注意:

上記のコードは、fbsql_fetch_row() または他の 類似の関数でも簡単に同じことが可能です。

参考



add a note add a note User Contributed Notes fbsql_list_dbs
There are no user contributed notes for this page.

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