fbsql_list_dbs
(PHP 4 >= 4.0.6, PHP 5)
fbsql_list_dbs — فهرست پایگاه دادههای موجود در سرور FrontBase
Description
resource fbsql_list_dbs
([ resource $link_identifier
] )
بازگرداندن اشارهگر نتیجه شامل پایگاه دادههای موجود از fbsql daemon فعلی. fbsql_tablename() برای گردش اشارهگر نتایج استفاده کنید.
Parameters
- link_identifier
-
A FrontBase link identifier returned by fbsql_connect() or fbsql_pconnect().
If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect() was called with no arguments.
Return Values
بازگرداندن اشارهگر نتیجه یا FALSE در صورت خطا.
Examples
Example #1 مثال fbsql_list_dbs()
$link = fbsql_connect('localhost', 'myname', 'secret');
$db_list = fbsql_list_dbs($link);
while ($row = fbsql_fetch_object($db_list)) {
echo $row->Database . "\n";
}
The above example will output something similar to:
database1 database2 database3 ...
Note:
کد بالا به آسانی fbsql_fetch_row() یا توابع مشابه عمل خواهد کرد.
See Also
- fbsql_list_fields() - فهرست فیلدهای نتیجه FrontBase
- fbsql_list_tables() - فهرست جدولهای پایگاه داده FrontBase
There are no user contributed notes for this page.
