Description
string
fbsql_database_password ( resource link_identifier [, string database_password])
Returns: The database password associated with the link identifier_
fbsql_database_password() sets and retrieves
the database password used by the connection_ if a database is
protected by a database password, the user must call this function
before calling fbsql_select_db()_ if the second
optional parameter is given the function sets the database
password for the specified link identifier_ If no link identifier is
specified, the last opened link is assumed_ If no link is open,
the function will try to establish a link as if
fbsql_connect() was called, and use it_
This function does not change the database password in the database
nor can it be used to retrieve the database password for a database_
Ejemplo 1_ fbsql_create_clob() example <?php
$link = fbsql_pconnect ("localhost", "_SYSTEM", "secret")
or die ("Could not connect");
fbsql_database_password($link, "secret db password");
fbsql_select_db($database, $link);
?> |
|
See also: fbsql_connect(),
fbsql_pconnect() and
fbsql_select_db()_