1
<?xml version='1.0' encoding='UTF-8'?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3
"docbook/dtd/xml/4.2/docbookx.dtd" [
4
<!ENTITY % global_ents SYSTEM "../global.ent">
7
<refentry id="functions.mysql_free_result" display-name="0">
9
<refentrytitle>mysql_free_result</refentrytitle>
12
<refname>mysql_free_result</refname>
13
<refpurpose>Frees the memory associated to a result set</refpurpose>
15
<refsect1 role="description">
18
<methodname>mysql_free_result</methodname>
19
<methodparam><type>MYSQL_RES *</type><parameter>result</parameter></methodparam>
22
<para>Frees the memory associated to the specified result set.</para>
24
<refsect1 role="parameters">
25
<title>Parameters</title>
27
<varlistentry><term><parameter>result</parameter></term><listitem><para>¶m.result;</para></listitem></varlistentry>
30
<refsect1 role="returnvalue">
31
<title>Return value</title>
34
<refsect1 role="returnvalue">
37
<para>You should always free your result set with <function>mysql_free_result()</function> as soon it's not needed anymore</para>
38
<para>Row values obtained by a prior <function>mysql_fetch_row()</function> call will become invalid after calling <function>mysql_free_result()</function>.</para>
41
<refsect1 role="seealso">
42
<title>See also</title>
44
<function>mysql_store_result()</function>,
45
<function>mysql_use_result()</function>