cvs: phpdoc-da /reference/mysql/functions mysql-create-db.xml

From: Date: Sat, 17 Jul 2004 09:54:45 +0000
Subject: cvs: phpdoc-da /reference/mysql/functions mysql-create-db.xml
Groups: php.doc.da 
Request: Send a blank email to doc-da+get-83@lists.php.net to get a copy of this message
mnv Sat Jul 17 05:54:45 2004 EDT Added files: /phpdoc-da/reference/mysql/functions mysql-create-db.xml Log: Initial translation http://cvs.php.net/co.php/phpdoc-da/reference/mysql/functions/mysql-create-db.xml?r=1.1&p=1 Index: phpdoc-da/reference/mysql/functions/mysql-create-db.xml +++ phpdoc-da/reference/mysql/functions/mysql-create-db.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- En-Revision: 1.10 Maintainer: mnv Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-create-db"> <refnamediv> <refname>mysql_create_db</refname> <refpurpose>Opretter en MySQL database</refpurpose> </refnamediv> <refsect1> <title>Beskrivelse</title> <methodsynopsis> <type>bool</type><methodname>mysql_create_db</methodname> <methodparam><type>string</type><parameter>database_navn</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> <function>mysql_create_db</function> forsøger at oprette en ny database, på serveren associeret med link_identifier parametret. </para> <para> &return.success; </para> <para> <example> <title>MySQL opret database eksempel</title> <programlisting role="php"> <![CDATA[ <?php $link = mysql_connect('localhost', 'mysql_bruger', 'mysql_password'); if (!$link) { die('Kunne ikke forbinde til databasen: ' . mysql_error()); } if (mysql_create_db('my_db')) { echo "Database oprette succesfuldt\n"; } else { echo 'Der opstod en fejl ved oprettelse af databasen: ' . mysql_error() . "\n"; } ?> ]]> </programlisting> </example> </para> <para> For kompatibilitet med tidligere versioner kan <function>mysql_createdb</function> også bruges. Denne er dog forældet. </para> <note> <para> Funktionen <function>mysql_create_db</function> er forældet. Det er foretrukket at bruge <function>mysql_query</function> til at udføre en <literal>SQL CREATE DATABASE</literal> forespørgsel i stedet. </para> </note> <warning> <para> Denne funktion vil ikke være at finde, hvis MySQL modulet, er bygget op imod et MySQL 4.x klient bibliotek. </para> </warning> <para> Se også <function>mysql_query</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 -->

« previous php.doc.da (#83) next »