FrontBase Functions
PHP Manual


(PHP 4 >= 4.0.7, PHP 5, PHP 7)

fbsql_db_statusGet the status for a given database


int fbsql_db_status ( string $database_name [, resource $link_identifier ] )

Gets the current status of the specified database.



The database name.


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

Returns an integer value with the current status. This can be one of the following constants:

See Also

FrontBase Functions
PHP Manual