php-doc-en/reference/fbsql/functions/fbsql-create-db.xml
Jakub Vrana df1bfeb3e3 Fix protos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@172498 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-11 14:54:25 +00:00

64 lines
2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/fbsql.xml, last change in rev 1.26 -->
<refentry id="function.fbsql-create-db">
<refnamediv>
<refname>fbsql_create_db</refname>
<refpurpose>Create a FrontBase database</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>fbsql_create_db</methodname>
<methodparam><type>string</type><parameter>database_name</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>database_options</parameter></methodparam>
</methodsynopsis>
<para>
<function>fbsql_create_db</function> attempts to create a new
database named <parameter>database_name</parameter> on the server
associated with the specified connection
<parameter>link_identifier</parameter>.
</para>
<example>
<title><function>fbsql_create_db</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$link = fbsql_pconnect("localhost", "_SYSTEM", "secret")
or die("Could not connect");
if (fbsql_create_db("my_db")) {
echo "Database created successfully\n";
} else {
printf("Error creating database: %s\n", fbsql_error());
}
?>
]]>
</programlisting>
</example>
<para>
See also: <function>fbsql_drop_db</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->