cvs: phpdoc-hu /reference/mysqli/functions mysqli-connect-error.xml mysqli-errno.xml mysqli-error.xml

From: Date: Sat, 24 Feb 2007 20:30:10 +0000
Subject: cvs: phpdoc-hu /reference/mysqli/functions mysqli-connect-error.xml mysqli-errno.xml mysqli-error.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-1589@lists.php.net to get a copy of this message
chappy Sat Feb 24 20:30:10 2007 UTC Added files: /phpdoc-hu/reference/mysqli/functions mysqli-connect-error.xml mysqli-errno.xml mysqli-error.xml Log: sync

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/mysqli/functions/mysqli-connect-error.xml?view=markup&rev=1.1 Index: phpdoc-hu/reference/mysqli/functions/mysqli-connect-error.xml +++ phpdoc-hu/reference/mysqli/functions/mysqli-connect-error.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.9 Maintainer: chappy Status: ready --> <refentry id="function.mysqli-connect-error"> <refnamediv> <refname>mysqli_connect_error</refname> <refpurpose>Visszaadja az utolsó csatlakozás hibaüzenetét</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>mysqli_connect_error</methodname> <void /> </methodsynopsis> <para> Visszaadja az utolsó <function>mysqli_connect</function> függvényhívás hibaüzenetét. </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Egy karaterlánc, ami leírja a hibá. Ez egy üres karaterlánc, ha nem lépett fel hiba. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>mysqli_connect_error</function> példa</title> <programlisting role="php"> <![CDATA[ <?php $link = @mysqli_connect("localhost", "nonexisting_user", ""); if (!$link) { printf("Can't connect to localhost. Error: %s\n", mysqli_connect_error()); } ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>mysqli_connect</function></member> <member><function>mysqli_connect_errno</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-errno.xml?view=markup&rev=1.1 Index: phpdoc-hu/reference/mysqli/functions/mysqli-errno.xml +++ phpdoc-hu/reference/mysqli/functions/mysqli-errno.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.15 Maintainer: chappy Status: ready --> <refentry id="function.mysqli-errno"> <refnamediv> <refname>mysqli_errno</refname> <refname>mysqli->errno</refname> <refpurpose>Visszaadja a legutolsó függvényhívás hibakódját</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para>Eljárást használó stílus:</para> <methodsynopsis> <type>int</type><methodname>mysqli_errno</methodname> <methodparam><type>mysqli</type><parameter>link</parameter></methodparam> </methodsynopsis> <para>Objektum-orientált stílus (property):</para> <classsynopsis> <ooclass><classname>mysqli</classname></ooclass> <fieldsynopsis><type>int</type><varname>errno</varname></fieldsynopsis> </classsynopsis> <para> Visszaadja a legutolsó MySQLi függvényhívás (ami lehetett sikeres vagy sikertelen) hibakódját. </para> <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> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> &mysqli.link.description; </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Az utolsó függvényhívás hibakódja, ha az sikertelen volt. A nulla azt jelenti, hogy nem volt hiba. </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(); } if (!$mysqli->query("SET a=1")) { printf("Errorcode: %d\n", $mysqli->errno); } /* 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 (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } if (!mysqli_query($link, "SET a=1")) { printf("Errorcode: %d\n", mysqli_errno($link)); } /* kapcsolat bezárása */ mysqli_close($link); ?> ]]> </programlisting> </example> &example.outputs; <screen> <![CDATA[ Errorcode: 1193 ]]> </screen> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>mysqli_connect_errno</function></member> <member><function>mysqli_connect_error</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-error.xml?view=markup&rev=1.1 Index: phpdoc-hu/reference/mysqli/functions/mysqli-error.xml +++ phpdoc-hu/reference/mysqli/functions/mysqli-error.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.16 Maintainer: chappy Status: ready --> <refentry id="function.mysqli-error"> <refnamediv> <refname>mysqli_error</refname> <refpurpose>Visszaadja a szöveges leírását az utolsó hibának</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para>Eljárást használó stílus:</para> <methodsynopsis> <type>string</type><methodname>mysqli_error</methodname> <methodparam><type>mysqli</type><parameter>link</parameter></methodparam> </methodsynopsis> <para>Objektum-orientált stílus (property)</para> <classsynopsis> <ooclass><classname>mysqli</classname></ooclass> <fieldsynopsis><type>string</type><varname>error</varname></fieldsynopsis> </classsynopsis> <para> Visszaadja a legutolsó MySQLi függvényhívás (ami lehetett sikeres vagy sikertelen) hibaüzenetét. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> &mysqli.link.description; </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Egy karaterlánc, ami leírja a hibát. Egy üres karaterlánc, ha nem lépett fel hiba. </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(); } if (!$mysqli->query("SET a=1")) { printf("Errormessage: %s\n", $mysqli->error); } /* 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 (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } if (!mysqli_query($link, "SET a=1")) { printf("Errormessage: %s\n", mysqli_error($link)); } /* kapcsolat bezárása */ mysqli_close($link); ?> ]]> </programlisting> </example> &example.outputs; <screen> <![CDATA[ Errormessage: Unknown system variable 'a' ]]> </screen> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>mysqli_connect_errno</function></member> <member><function>mysqli_connect_error</function></member> <member><function>mysqli_errno</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 -->
« previous php.doc.hu (#1589) next »