Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fbsql_create_db(3) [php man page]

FBSQL_CREATE_DB(3)							 1							FBSQL_CREATE_DB(3)

fbsql_create_db - Create a FrontBase database

SYNOPSIS
bool fbsql_create_db (string $database_name, [resource $link_identifier], [string $database_options]) DESCRIPTION
Attempts to create a new database on the specified server. PARAMETERS
o $database_name - The database name, as a string. o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).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(3) was called with no arguments. o $database_options - RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 fbsql_create_db(3) example <?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die("Could not connect"); if (fbsql_create_db("my_db")) { echo "Database created successfully "; } else { printf("Error creating database: %s ", fbsql_error()); } ?> SEE ALSO
fbsql_drop_db(3). PHP Documentation Group FBSQL_CREATE_DB(3)

Check Out this Related Man Page

FBSQL_LIST_FIELDS(3)							 1						      FBSQL_LIST_FIELDS(3)

fbsql_list_fields - List FrontBase result fields

SYNOPSIS
resource fbsql_list_fields (string $database_name, string $table_name, [resource $link_identifier]) DESCRIPTION
Retrieves information about the given table. PARAMETERS
o $database_name - The database name. o $table_name - The table name. o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).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(3) was called with no arguments. RETURN VALUES
Returns a result pointer which can be used with the fbsql_field_xxx functions, or FALSE on error. ERRORS
/EXCEPTIONS A string describing the error will be placed in $phperrmsg, and unless the function was called as @fbsql() then this error string will also be printed out. EXAMPLES
Example #1 fbsql_list_fields(3) example <?php $link = fbsql_connect('localhost', 'myname', 'secret'); $fields = fbsql_list_fields("database1", "table1", $link); $columns = fbsql_num_fields($fields); for ($i = 0; $i < $columns; $i++) { echo fbsql_field_name($fields, $i) . " ";; } ?> The above example will output something similar to: field1 field2 field3 SEE ALSO
fbsql_field_len(3), fbsql_field_name(3), fbsql_field_type(3), fbsql_field_flags(3). PHP Documentation Group FBSQL_LIST_FIELDS(3)
Man Page