manuzhai Mon Apr 29 05:44:31 2002 EDT Modified files: /phpdoc/nl/reference/mysql/functions mysql-errno.xml Log: Updated to EN 1.4 Index: phpdoc/nl/reference/mysql/functions/mysql-errno.xml diff -u phpdoc/nl/reference/mysql/functions/mysql-errno.xml:1.2 phpdoc/nl/reference/mysql/functions/mysql-errno.xml:1.3 --- phpdoc/nl/reference/mysql/functions/mysql-errno.xml:1.2 Wed Apr 17 03:14:09 2002 +++ phpdoc/nl/reference/mysql/functions/mysql-errno.xml Mon Apr 29 05:44:31 2002 @@ -1,8 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./nl/functions/mysql.xml, last change in rev 1.1 --> -<!-- last change to 'mysql-errno' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: manuzhai Status: ready --> -<!-- OLD-Revision: 1.95/EN.1.2 --> +<!-- EN-Revision: 1.4 Maintainer: manuzhai Status: ready --> <refentry id="function.mysql-errno"> <refnamediv> <refname>mysql_errno</refname> @@ -25,27 +22,38 @@ </para> <para> Errors die terug komen van de MySQL database module geven geen - warnings meer. In plaats daarvan kun je <function>mysql_errno</function> - gebruiken om de fout code op te halen. Merk op dat deze functie alleen - de fout code van de meest recent uitgevoerde MySQL functie - (<function>mysql_error</function> en <function>mysql_errno</function> - uitgezonderd) ophalt, dus als je hem wil gebruiken, zorg dat je - de waarde controleert voordat je een andere MySQL functie aanroept. - <informalexample> + warnings meer. In plaats daarvan kun je + <function>mysql_errno</function> gebruiken om de fout code op te + halen. Merk op dat deze functie alleen de fout code van de meest + recent uitgevoerde MySQL functie (<function>mysql_error</function> + en <function>mysql_errno</function> uitgezonderd) ophalt, dus als + je hem wil gebruiken, zorg dat je de waarde controleert voordat + je een andere MySQL functie aanroept. + <example> + <title><function>mysql_errno</function> voorbeeld</title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("marliesle"); -echo mysql_errno().": ".mysql_error()."<BR>"; mysql_select_db("nonexistentdb"); echo mysql_errno().": ".mysql_error()."<BR>"; +mysql_select_db("kossu"); $conn = mysql_query("SELECT * FROM nonexistenttable"); echo mysql_errno().": ".mysql_error()."<BR>"; ?> ]]> </programlisting> - </informalexample> - </para> + <para> + Het bovenstaande voorbeeld zou de volgende output genereren: + </para> + <screen> + <![CDATA[ + 1049: Unknown database 'nonexistentdb' + 1146: Table 'kossu.nonexistenttable' doesn't exist + ]]> + </screen> + </example> + </para> <para> Zie ook: <function>mysql_error</function>. </para>