<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Send data in blocks</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.maxdb-stmt-result-metadata.html">maxdb_stmt_result_metadata</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-stmt-sqlstate.html">maxdb_stmt_sqlstate</a></div> <div class="up"><a href="ref.maxdb.html">MaxDB Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.maxdb-stmt-send-long-data" class="refentry"> <div class="refnamediv"> <h1 class="refname">maxdb_stmt_send_long_data</h1> <h1 class="refname">maxdb_stmt::send_long_data</h1> <p class="verinfo">(PECL maxdb 1.0)</p><p class="refpurpose"><span class="refname">maxdb_stmt_send_long_data</span> -- <span class="refname">maxdb_stmt::send_long_data</span> — <span class="dc-title">Send data in blocks</span></p> </div> <div class="refsect1 description" id="refsect1-function.maxdb-stmt-send-long-data-description"> <h3 class="title">Description</h3> <p class="para">Procedural style</p> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>maxdb_stmt_send_long_data</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$stmt</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$param_nr</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span> )</div> <p class="para rdfs-comment">Object oriented style</p> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>maxdb_stmt::stmt_send_long_data</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$param_nr</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span> )</div> <p class="para rdfs-comment"> Allows to send parameter data to the server in pieces (or chunks). This function can be called multiple times to send the parts of a character or binary data value for a column, which must be one of the TEXT or BLOB datatypes. </p> <p class="para"> <em><code class="parameter">param_nr</code></em> indicates which parameter to associate the data with. Parameters are numbered beginning with 0. <em><code class="parameter">data</code></em> is a string containing data to be sent. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> For efficiency reasons, this function should be used after calling <span class="function"><a href="function.maxdb-execute.html" class="function">maxdb_execute()</a></span>. In this case, the data is not stored on the client side. The end of the sequence must end with a call to <span class="function"><a href="function.maxdb-stmt-close-long-data.html" class="function">maxdb_stmt_close_long_data()</a></span>. </p> </p></blockquote> </div> <div class="refsect1 returnvalues" id="refsect1-function.maxdb-stmt-send-long-data-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-function.maxdb-stmt-send-long-data-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.maxdb-prepare.html" class="function" rel="rdfs-seeAlso">maxdb_prepare()</a> - Prepare an SQL statement for execution</span></li> <li class="member"> <span class="function"><a href="function.maxdb-stmt-bind-param.html" class="function" rel="rdfs-seeAlso">maxdb_stmt_bind_param()</a> - Binds variables to a prepared statement as parameters</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.maxdb-stmt-result-metadata.html">maxdb_stmt_result_metadata</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-stmt-sqlstate.html">maxdb_stmt_sqlstate</a></div> <div class="up"><a href="ref.maxdb.html">MaxDB Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>