Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9649

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Closes a previously opened database connection</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.client-version.html">mysqli::$client_version</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.commit.html">mysqli::commit</a></div>
 <div class="up"><a href="class.mysqli.html">mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqli.close" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::close</h1>
  <h1 class="refname">mysqli_close</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli::close</span> -- <span class="refname">mysqli_close</span> &mdash; <span class="dc-title">Closes a previously opened database connection</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-mysqli.close-description">
  <h3 class="title">Description</h3>
  <p class="para">Object oriented style</p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>mysqli::close</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">Procedural style</p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>mysqli_close</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>

  <p class="para rdfs-comment">
   Closes a previously opened database connection.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.close-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>
<span class="term"><em><code class="parameter">
link</code></em></span><dd>
<p class="para">Procedural style only: A link identifier
returned by  <span class="function"><a href="function.mysqli-connect.html" class="function">mysqli_connect()</a></span> or  <span class="function"><a href="mysqli.init.html" class="function">mysqli_init()</a></span>
</p></dd>
</dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.close-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 examples" id="refsect1-mysqli.close-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   See  <span class="function"><a href="function.mysqli-connect.html" class="function">mysqli_connect()</a></span>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.close-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="methodname"><a href="mysqli.construct.html" class="methodname" rel="rdfs-seeAlso">mysqli::__construct()</a> - Open a new connection to the MySQL server</span></li>
    <li class="member"> <span class="function"><a href="mysqli.init.html" class="function" rel="rdfs-seeAlso">mysqli_init()</a> - Initializes MySQLi and returns a resource for use with mysqli_real_connect()</span></li>
    <li class="member"> <span class="function"><a href="mysqli.real-connect.html" class="function" rel="rdfs-seeAlso">mysqli_real_connect()</a> - Opens a connection to a mysql server</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="mysqli.client-version.html">mysqli::$client_version</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.commit.html">mysqli::commit</a></div>
 <div class="up"><a href="class.mysqli.html">mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>