cvs: phpdoc-ro /reference/mysql/functions mysql-create-db.xml mysql-get-client-info.xml
| From: | Gabriel PREDA | Date: | Fri, 14 Jan 2005 07:47:10 +0000 |
| Subject: | cvs: phpdoc-ro /reference/mysql/functions mysql-create-db.xml mysql-get-client-info.xml | ||
| Groups: | php.doc.ro | ||
| Request: | Send a blank email to doc-ro+get-141@lists.php.net to get a copy of this message | ||
radical Fri Jan 14 02:47:10 2005 EDT
Added files:
/phpdoc-ro/reference/mysql/functions mysql-create-db.xml
mysql-get-client-info.xml
Log:
Create DB - chiar daca e deprecated
Get client info
http://cvs.php.net/co.php/phpdoc-ro/reference/mysql/functions/mysql-create-db.xml?r=1.1&p=1
Index: phpdoc-ro/reference/mysql/functions/mysql-create-db.xml
+++ phpdoc-ro/reference/mysql/functions/mysql-create-db.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- 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>Creaza o noua baza de date MySQL</refpurpose>
</refnamediv>
<refsect1>
<title>Descriere</title>
<methodsynopsis>
<type>bool</type><methodname>mysql_create_db</methodname>
<methodparam><type>string</type><parameter>database_name</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>
link_identifier
</parameter></methodparam>
</methodsynopsis>
<para>
<function>mysql_create_db</function> incearca sa creeze
o noua baza de date pe server.
</para>
<para>
&return.success;
</para>
<para>
<example>
<title>Exemplu creare baza de date</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Nu am putut stabili o conexiune cu serverul: ' . mysql_error());
}
if (mysql_create_db('my_db')) {
echo "Baza de date a fost creata\n";
} else {
echo 'Eroare in crearea bazei de date: ' . mysql_error() . "\n";
}
?>
]]>
</programlisting>
</example>
</para>
<para>
Pentru compatibilitate cu versiuni mai vechi se poate folosi
si <function>mysql_createdb</function>.
Totusi, aceasta functie este scoasa din uz.
</para>
<note>
<para>
Functia <function>mysql_create_db</function> este scoasa din uz.
Este de preferat sa folositi <function>mysql_query</function> si sa
emiteti o comanda SQL <literal>CREATE DATABASE</literal>.
</para>
</note>
<warning>
<para>
Aceasta functie nu este disponibila daca extensia MySQL a fost compilata
cu o librarie client de versiune 4.x sau mai noua.
</para>
</warning>
<para>
Va recomandam si: <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
-->
http://cvs.php.net/co.php/phpdoc-ro/reference/mysql/functions/mysql-get-client-info.xml?r=1.1&p=1
Index: phpdoc-ro/reference/mysql/functions/mysql-get-client-info.xml
+++ phpdoc-ro/reference/mysql/functions/mysql-get-client-info.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.62 -->
<refentry id="function.mysql-get-client-info">
<refnamediv>
<refname>mysql_get_client_info</refname>
<refpurpose>Aflare informatii client MySQL</refpurpose>
</refnamediv>
<refsect1>
<title>Descriere</title>
<methodsynopsis>
<type>string</type><methodname>mysql_get_client_info</methodname>
<void/>
</methodsynopsis>
<para>
<function>mysql_get_client_info</function> intoarce un sir de caractere care
reprezinta versiunea librariei client.
</para>
<para>
<example>
<title>exemplu <function>mysql_get_client_info</function></title>
<programlisting role="php">
<![CDATA[
<?php
printf("Informatie client MySQL: %s\n", mysql_get_client_info());
?>
]]>
</programlisting>
<para>
Exemplul de mai sus va produce:
</para>
<screen>
<![CDATA[
Informatie client MySQL: 3.23.39
]]>
</screen>
</example>
</para>
<para>
Va recomandam de asemenea:
<function>mysql_get_host_info</function>,
<function>mysql_get_proto_info</function> si
<function>mysql_get_server_info</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
-->