cvs: phpdoc-hu /reference/mysqli/functions mysqli-autocommit.xml mysqli-commit.xml mysqli-connect-errno.xml mysqli-connect.xml
[email protected] ("Lajos Cseppent?")
| Newsgroups | php.doc.hu |
|---|---|
| Message-ID | <cvschappy1172344809@cvsserver> |
chappy Sat Feb 24 19:20:09 2007 UTC
Added files:
/phpdoc-hu/reference/mysqli/functions mysqli-autocommit.xml
mysqli-commit.xml
mysqli-connect-errno.xml
mysqli-connect.xml
Log:
sync
chappy-20070224192009.txt
(text/plain, 16.8 KB)
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/mysqli/functions/mysqli-autocommit.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/mysqli/functions/mysqli-autocommit.xml
+++ phpdoc-hu/reference/mysqli/functions/mysqli-autocommit.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.20 Maintainer: chappy Status: ready -->
<refentry id="function.mysqli-autocommit">
<refnamediv>
<refname>mysqli_autocommit</refname>
<refname>mysqli->autocommit()</refname>
<refpurpose>Be- vagy kikapcsolja az adatbázis-módosítások automatikus végrehajtását</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>Eljárást használó stílus:</para>
<methodsynopsis>
<type>bool</type><methodname>mysqli_autocommit</methodname>
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
<methodparam><type>bool</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
<para>Objektum-orientált stílus (metódus)</para>
<classsynopsis>
<ooclass><classname>mysqli</classname></ooclass>
<methodsynopsis>
<type>bool</type><methodname>autocommit</methodname>
<methodparam><type>bool</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Be- vagy kikapcsolja a kérések automatikus végrehajtását az adatbázis kapcsolaton.
</para>
<para>
Az automatikus végrehajtás jelenlegi állapotának a meghatározásához használd a
<literal>SELECT @@autocommit</literal> SQL parancsot.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
&mysqli.link.description;
<varlistentry>
<term><parameter>mode</parameter></term>
<listitem>
<para>
Megszabja, hogy az automatikus végrehajtás be legyen-e kapcsolva.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
Ez a függvény nem mûködik nem tranzakciós táblatípusokkal (mint a
MyISAM vagy ISAM).
</para>
</note>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Objektum-orientált stílus</title>
<programlisting role="php">
<![CDATA[
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
/* automatikus végrehajtás bekapcsolása */
$mysqli->autocommit(TRUE);
if ($result = $mysqli->query("SELECT @@autocommit")) {
$row = $result->fetch_row();
printf("Autocommit is %s\n", $row[0]);
$result->free();
}
/* kapcsolat bezárása */
$mysqli->close();
?>
]]>
</programlisting>
</example>
<example>
<title>Eljárást használó stílus</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");
if (!$link) {
printf("Can't connect to localhost. Error: %s\n", mysqli_connect_error());
exit();
}
/* automatikus végrehajtás bekapcsolása */
mysqli_autocommit($link, TRUE);
if ($result = mysqli_query($link, "SELECT @@autocommit")) {
$row = mysqli_fetch_row($result);
printf("Autocommit is %s\n", $row[0]);
mysqli_free_result($result);
}
/* kapcsolat bezárása */
mysqli_close($link);
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
Autocommit is 1
]]>
</screen>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>mysqli_commit</function></member>
<member><function>mysqli_rollback</function></member>
</simplelist>
</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/viewvc.cgi/phpdoc-hu/reference/mysqli/functions/mysqli-commit.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/mysqli/functions/mysqli-commit.xml
+++ phpdoc-hu/reference/mysqli/functions/mysqli-commit.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.14 Maintainer: chappy Status: ready -->
<refentry id="function.mysqli-commit">
<refnamediv>
<refname>mysqli_commit</refname>
<refname>mysqli->commit()</refname>
<refpurpose>Végrehajtja a jelenlegi tranzakciót</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>Eljárást használó stílus:</para>
<methodsynopsis>
<type>bool</type><methodname>mysqli_commit</methodname>
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
</methodsynopsis>
<para>Objektum-orientált stílus (metódus)</para>
<classsynopsis>
<ooclass><classname>mysqli</classname></ooclass>
<methodsynopsis>
<type>bool</type><methodname>commit</methodname>
<void />
</methodsynopsis>
</classsynopsis>
<para>
Végrehajtja a jelenlegi tranzakciót a jelenlegi adatbáziskapcsolaton.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
&mysqli.link.description;
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Objektum-orientált stílus</title>
<programlisting role="php">
<![CDATA[
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* kapcsolat ellenõrzése */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$mysqli->query("CREATE TABLE Language LIKE CountryLanguage Type=InnoDB");
/* az automatikus végrehajtás kikapcsolása */
$mysqli->autocommit(FALSE);
/* néhány érték bevitele */
$mysqli->query("INSERT INTO Language VALUES ('DEU', 'Bavarian', 'F', 11.2)");
$mysqli->query("INSERT INTO Language VALUES ('DEU', 'Swabian', 'F', 9.4)");
/* tranzakció végrehajtása */
$mysqli->commit();
/* tábla törlése */
$mysqli->query("DROP TABLE Language");
/* kapcsolat bezárása */
$mysqli->close();
?>
]]>
</programlisting>
</example>
<example>
<title>Eljárást használó stílus</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "test");
/* kapcsolat ellenõrzése */
if (!$link) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
/* az automatikus végrehajtás kikapcsolása */
mysqli_autocommit($link, FALSE);
mysqli_query($link, "CREATE TABLE Language LIKE CountryLanguage Type=InnoDB");
/* néhány érték bevitele */
mysqli_query($link, "INSERT INTO Language VALUES ('DEU', 'Bavarian', 'F', 11.2)");
mysqli_query($link, "INSERT INTO Language VALUES ('DEU', 'Swabian', 'F', 9.4)");
/* tranzakció végrehajtása */
mysqli_commit($link);
/* kapcsolat bezárása */
mysqli_close($link);
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>mysqli_autocommit</function></member>
<member><function>mysqli_rollback</function></member>
</simplelist>
</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/viewvc.cgi/phpdoc-hu/reference/mysqli/functions/mysqli-connect-errno.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/mysqli/functions/mysqli-connect-errno.xml
+++ phpdoc-hu/reference/mysqli/functions/mysqli-connect-errno.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.9 Maintainer: chappy Status: ready -->
<refentry id="function.mysqli-connect-errno">
<refnamediv>
<refname>mysqli_connect_errno</refname>
<refpurpose>Visszaadja az utolsó csatlakozás-hívás hibakódját</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>mysqli_connect_errno</methodname>
<void />
</methodsynopsis>
<para>
Visszaadha az utolsó <function>mysqli_connect</function> függvényhívás
hibakódját.
</para>
<note>
<para>
A kliens hibakódok a <filename>errmsg.h</filename> fejléc fájlban
vannak kilistázva, a szerver hibakódok a <filename>mysqld_error.h</filename> fájlban.
A MySQL forrás disztribúciójában megtalálható a
hibaüzenetek és hibakódok teljes listája a
<filename>Docs/mysqld_error.txt</filename> fájlban.
</para>
</note>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Az utolsó <function>mysqli_connect</function> függvényhívás hibakódja, ha a csatlakozás sikertelen volt.
A nulla azt jelenti, hogy nem volt hiba.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>mysqli_connect_errno</function> példa</title>
<programlisting role="php">
<![CDATA[
<?php
$link = @mysqli_connect("localhost", "nonexisting_user", "");
if (!$link) {
printf("Can't connect to localhost. Errorcode: %d\n", mysqli_connect_errno());
}
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>mysqli_connect</function></member>
<member><function>mysqli_connect_error</function></member>
<member><function>mysqli_errno</function></member>
<member><function>mysqli_error</function></member>
<member><function>mysqli_sqlstate</function></member>
</simplelist>
</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/viewvc.cgi/phpdoc-hu/reference/mysqli/functions/mysqli-connect.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/mysqli/functions/mysqli-connect.xml
+++ phpdoc-hu/reference/mysqli/functions/mysqli-connect.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.22 Maintainer: chappy Status: ready -->
<refentry id="function.mysqli-connect">
<refnamediv>
<refname>mysqli_connect</refname>
<refname>mysqli->__construct()</refname>
<refpurpose>Új kapcsolatot nyit a MySQL szerverhez</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>Eljárást használó stílus</para>
<methodsynopsis>
<type>mysqli</type><methodname>mysqli_connect</methodname>
<methodparam choice='opt'><type>string</type><parameter>host</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>username</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>passwd</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>dbname</parameter></methodparam>
<methodparam choice='opt'><type>int</type><parameter>port</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>socket</parameter></methodparam>
</methodsynopsis>
<para>Objektum-orientált stílus (konstruktor):</para>
<classsynopsis>
<ooclass><classname>mysqli</classname></ooclass>
<constructorsynopsis>
<methodname>__construct</methodname>
<methodparam choice='opt'><type>string</type><parameter>host</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>username</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>passwd</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>dbname</parameter></methodparam>
<methodparam choice='opt'><type>int</type><parameter>port</parameter></methodparam>
<methodparam choice='opt'><type>string</type><parameter>socket</parameter></methodparam>
</constructorsynopsis>
</classsynopsis>
<para>
Egy kapcsolatot nyit a futó MySQL szerverhez.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>host</parameter></term>
<listitem>
<para>
Lehet hosztnév vagy IP cím. A &null; vagy
"localhost" értékeket megadva a helyi hosztot
veszi fel. Ha lehetséges, adatcsatornát (pipe) használ a TCP/IP
protokoll helyett.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>username</parameter></term>
<listitem>
<para>
A MySQL felhasználónév.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>passwd</parameter></term>
<listitem>
<para>
Ha nincs meg van adva, vagy &null;, akkor a MySQL szerver megpróbálja azonosítani a
felhasználót azokkal a felhasználói rekordokkal, melyeknek nem kötelezõ jelszót megadni.
Ez lehetõvé teszi egy felhasználónév többféle használatát különbözõ jogosultságokkal
(attól függ, hogy megadott-e jelszót, vagy nem).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>dbname</parameter></term>
<listitem>
<para>
Ha meg van adva, megszabja az alapértelmezett adatbázist, amin majd a
kéréseket végrehajtja.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>port</parameter></term>
<listitem>
<para>
Megszabja a MySQL szerverhez való kapcsolódáskor használni kívánt port számát.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>socket</parameter></term>
<listitem>
<para>
Megadja a használni kívánt socket-et vagy az elnevezett pipe-ot.
</para>
<note>
<para>
A <parameter>socket</parameter> paramétert megadása nem fogja
nyíltan meghatározni a MySQL szerverhez való csatlakozás során használni kívánt
kapcsolat típusát. A MySQL adatbázishoz való kapcsolat
a <parameter>host</parameter> paraméter segítségével
lesz meghatározva.
</para>
</note>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Visszaad egy objektumot, ami a kapcsolatot képviseli egy MySQL szerverhez, vagy
&false;-t, ha a csatlakozás sikertelen.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Objektum-orientált stílus</title>
<programlisting role="php">
<![CDATA[
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* kapcsolat ellenõrzése */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", $mysqli->host_info);
/* kapcsolat bezárása */
$mysqli->close();
?>
]]>
</programlisting>
</example>
<example>
<title>Eljárást használó stílus</title>
<programlisting role="php">
<![CDATA[
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");
/* kapcsolat ellenõrzése */
if (!$link) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", mysqli_get_host_info($link));
/* kapcsolat bezárása */
mysqli_close($link);
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
Host information: Localhost via UNIX socket
]]>
</screen>
</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
-->