manuzhai                Mon Apr 29 07:06:25 2002 EDT

  Added files:                 
    /phpdoc/nl/reference/mysql/functions        mysql-info.xml 
                                                mysql-list-processes.xml 
                                                mysql-ping.xml 
                                                mysql-real-escape-string.xml 
                                                mysql-thread-id.xml 
  Log:
  Synced to EN.
  

Index: phpdoc/nl/reference/mysql/functions/mysql-info.xml
+++ phpdoc/nl/reference/mysql/functions/mysql-info.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.3 Maintainer: manuzhai Status: ready -->
  <refentry id="function.mysql-info">
   <refnamediv>
    <refname>mysql_info</refname>
    <refpurpose>
     Haal informatie op over de recentste query
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beschrijving</title>
     <methodsynopsis>
      <type>string</type><methodname>mysql_info</methodname>
      <methodparam choice="opt"><type>resource</type><parameter>
        link_identifier
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>mysql_info</function> geeft gedetailleerde informatie
     terug over de laatste query met de gegeven 
     <parameter>link_identifier</parameter>. Als 
     <parameter>link_identifier</parameter> niet wordt gegeven, wordt
     de laatst geopende link gebruikt.
    </para>
    <para>
     <function>mysql_info</function> geeft een string terug voor alle
     statements hieronder. Voor alle andere &false;. Het string formaat
     hangt af van het gegeven statement.
     <example>
      <title>Relevante MySQL Statements</title>
      <programlisting role="mysql">
<![CDATA[
INSERT INTO ... SELECT ...
String format: Records: 23 Duplicates: 0 Warnings: 0 
INSERT INTO ... VALUES (...),(...),(...)...
String format: Records: 37 Duplicates: 0 Warnings: 0 
LOAD DATA INFILE ...
String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 
ALTER TABLE
String format: Records: 60 Duplicates: 0 Warnings: 0 
UPDATE
String format: Rows matched: 65 Changed: 65 Warnings: 0
]]>
      </programlisting>
     </example>
     De getallen zijn alleen om het doel te illustreren. Hun waarden
     zullen corresponderen met de query.
    </para>
    <note>
     <para>
      <function>mysql_info</function> geeft alleen een niet-&false; waarde
      voor de INSERT ... VALUES statement terug als meerdere value
      lijsten zijn gegeven in het statement.
    </para>
    </note>
    <para>
     Zie ook: <function>mysql_affected_rows</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
-->

Index: phpdoc/nl/reference/mysql/functions/mysql-list-processes.xml
+++ phpdoc/nl/reference/mysql/functions/mysql-list-processes.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.2 Maintainer: manuzhai Status: ready -->
  <refentry id="function.mysql-list-processes">
   <refnamediv>
    <refname>mysql_list_processes</refname>
    <refpurpose>Geef een lijst van MySQL processen</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beschrijving</title>
     <methodsynopsis>
      <type>resource</type><methodname>mysql_list_processes</methodname>
      <methodparam choice="opt"><type>resource</type><parameter>
        link_identifier
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>mysql_list_processes</function> geeft een resultaat
     pointer terug die de huidige server threads beschrijft.
    </para>
    <para>
     <example>
      <title><function>mysql_list_processes</function> voorbeeld</title>
      <programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');

$result = mysql_list_processes($link);
while ($row = mysql_fetch_row($result)){
    printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"],
       $row["Command"], $row["Time"]);
}
mysql_free_result ($result);
?>
]]>
      </programlisting>
      <para>
       Het bovenstaande voorbeeld zou de volgende output produceren:
       <screen>
<![CDATA[
1 localhost test Processlist 0
4 localhost mysql sleep 5
]]>
       </screen>
      </para>
     </example>
    </para>
    <para>
     Zie ook: <function>mysql_thread_id</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
-->

Index: phpdoc/nl/reference/mysql/functions/mysql-ping.xml
+++ phpdoc/nl/reference/mysql/functions/mysql-ping.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.3 Maintainer: manuzhai Status: ready -->
  <refentry id="function.mysql-ping">
   <refnamediv>
    <refname>mysql_ping</refname>
    <refpurpose>Ping een server connectie of maak weer verbinding als
    er geen verbinding is</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beschrijving</title>
     <methodsynopsis>
      <type>bool</type><methodname>mysql_ping</methodname>
      <methodparam choice="opt"><type>resource</type><parameter>
       link_identifier
       </parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>mysql_ping</function> controleert of de connectie
     met de server werkt. Als de connectie niet meer werkt wordt 
     automatisch geprobeerd een nieuwe connectie te maken. Deze functie
     kan worden gebruikt bij scripts die lange tijd idle blijven, om 
     te controleren of de server de verbinding heeft gesloten en de
     verbinding weer tot stand te brengen als dat nodig is.
     <function>mysql_ping</function> geeft &true; als de connectie
     met server werkt, &false; als dat niet zo is.
    </para>
    <para>
     Zie ook:
     <function>mysql_thread_id</function>,
     <function>mysql_list_processes</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
-->

Index: phpdoc/nl/reference/mysql/functions/mysql-real-escape-string.xml
+++ phpdoc/nl/reference/mysql/functions/mysql-real-escape-string.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.3 Maintainer: manuzhai Status: ready -->
  <refentry id="function.mysql-real-escape-string">
   <refnamediv>
    <refname>mysql_real_escape_string</refname>
    <refpurpose>
     Escapet speciale karakters in een string die wordt gebruikt in een SQL statement,
     waarbij de huidige charset van de verbinding in het oog wordt gehouden.
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beschrijving</title>
     <methodsynopsis>
      <type>string</type><methodname>mysql_real_escape_string</methodname>
      <methodparam><type>string</type><parameter>unescaped_string</parameter>
      </methodparam><methodparam choice="opt"><type>resource</type>
      <parameter>link_identifier</parameter></methodparam>
     </methodsynopsis>
    <para>
     Deze functie zal speciale karakters in de 
     <parameter>unescaped_string</parameter> escapen, waarbij wordt gelet
     op de huidige charset van de verbinding, zodat het veilig is om het
     in een <function>mysql_query</function> te plaatsen. 
    </para>
    <note>
     <simpara>
      <function>mysql_real_escape_string</function> escapet
      <literal>%</literal> en <literal>_</literal> niet.
     </simpara>
    </note>
     <example>
      <title><function>mysql_real_escape_string</function> voorbeeld</title>
      <programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$item = "Zak's and Derick's Laptop";
$escaped_item = mysql_real_escape_string($item);
printf ("Escaped string: %s\n", $escaped_item);
?>
]]>
      </programlisting>
      <para>
       Het bovenstaande voorbeeld zal de volgende output produceren:
       <screen>
<![CDATA[
Escaped string: Zak\'s and Derick\'s Laptop
]]>
       </screen>
      </para>
     </example>
    <para>
     Zie ook:
     <function>mysql_escape_string</function>,
     <function>mysql_character_set_name</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
-->

Index: phpdoc/nl/reference/mysql/functions/mysql-thread-id.xml
+++ phpdoc/nl/reference/mysql/functions/mysql-thread-id.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.3 Maintainer: manuzhai Status: ready -->
  <refentry id="function.mysql-thread-id">
   <refnamediv>
    <refname>mysql_thread_id</refname>
    <refpurpose>Geef het huidige thread id terug</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beschrijving</title>
    <methodsynopsis>
     <type>int</type><methodname>mysql_thread_id</methodname>
     <methodparam choice="opt"><type>resource</type>
     <parameter>link_identifier</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>mysql_thread_id</function> geeft het huidige thread ID
     terug. Als de connectie is verbroken en je maakt weer verbinding
     met <function>mysql_ping</function>, zal het thread ID veranderen.
     Dit betekent dat je het thread ID niet moet ophalen om het te
     bewaren voor later. Je moet het ophalen wanneer je het nodig hebt.
    </para>
     <example>
      <title><function>mysql_list_processes</function> voorbeeld</title>
      <programlisting role="php">
<![CDATA[
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$thread_id = mysql_thread_id($link);
if ($thread_id){
    printf ("huidig thread id is %d\n", $thread_id);
}
?>
]]>
      </programlisting>
      <para>
       Het bovenstaande voorbeeld zou de volgende output produceren:
       <screen>
<![CDATA[
current thread id is 73
]]>
       </screen>
      </para>
     </example>
    <para>
     Zie ook:
     <function>mysql_ping</function>,
     <function>mysql_list_processes</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
-->

Reply via email to