fbsql_tablename

(PHP 4 >= 4.2.0, PHP 5)

fbsql_tablename -- フィールドのテーブル名を得る

説明

string fbsql_tablename ( resource result, int i )

fbsql_tablename() takes a result pointer returned by the fbsql_list_tables() function as well as an integer index and returns the name of a table. The fbsql_num_rows() function may be used to determine the number of tables in the result pointer.

例 1. fbsql_tablename()の例

<?php
fbsql_connect
("localhost", "_SYSTEM", "");
$result = fbsql_list_tables ("wisconsin");
$i = 0;
while (
$i < fbsql_num_rows ($result)) {
    
$tb_names[$i] = fbsql_tablename ($result, $i);
    echo
$tb_names[$i] . "<BR>";
    
$i++;
}
?>