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_fetch_row" display-name="0">
9
<refentrytitle>mysql_fetch_row</refentrytitle>
12
<refname>mysql_fetch_row</refname>
13
<refpurpose>Get a row from result set</refpurpose>
15
<refsect1 role="description">
17
<type>MYSQL_ROW</type>
18
<methodname>mysql_fetch_row</methodname>
19
<methodparam><type>MYSQL_RES *</type><parameter>result</parameter></methodparam>
22
<para>Fetches one row of data from the result set and returns it as an array of char pointers (<parameter>MYSQL_ROW</parameter>), where each column is stored in an offset starting from 0 (zero). Each subsequent call to this function will return the next row within the result set, or <parameter>NULL</parameter> if there are no more rows. </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>
32
<para>Returns an array of strings that corresponds to the fetched row or NULL if there are no more rows in result set.</para>
34
<refsect1 role="returnvalue">
37
<para>Im case a column contains a <parameter>NULL</parameter> value the corresponding char pointer will be set to <parameter>NULL</parameter></para>
38
<para>Memory associated to MYSQL_ROW will be freed when calling <function>mysql_free_result()</function> function.</para>
41
<refsect1 role="seealso">
42
<title>See also</title>
44
<function>mysql_use_result()</function>, <function>mysql_store_result()</function>