vrana           Mon Jan 30 16:15:20 2006 UTC

  Modified files:              
    /phpdoc/en/reference/mysqli/functions       
                                                mysqli-stmt-send-long-data.xml 
  Log:
  Example (bug #36085)
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/mysqli/functions/mysqli-stmt-send-long-data.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/mysqli/functions/mysqli-stmt-send-long-data.xml
diff -u phpdoc/en/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.6 
phpdoc/en/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.7
--- phpdoc/en/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.6     
Tue Apr 26 14:33:31 2005
+++ phpdoc/en/reference/mysqli/functions/mysqli-stmt-send-long-data.xml Mon Jan 
30 16:15:20 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="function.mysqli-stmt-send-long-data">
  <refnamediv>
   <refname>mysqli_stmt_send_long_data</refname>
@@ -41,6 +41,26 @@
   <para>&return.success;</para>
  </refsect1>
  <refsect1>
+  &reftitle.examples;
+  <example>
+   <title>Object oriented style</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+$stmt = $mysqli->prepare("INSERT INTO messages (message) VALUES (?)");
+$stmt->bind_param("b", $null);
+$fp = fopen("messages.txt", "r");
+while (!feof($fp)) {
+       $stmt->send_long_data(0, fread($fp, 8192));
+}
+fclose($fp);
+$stmt->execute();
+?>
+]]>
+  </programlisting>
+  </example>
+ </refsect1>
+ <refsect1>
   &reftitle.seealso;
   <para>
    <function>mysqli_prepare</function>&listendand;

Reply via email to