<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.4 $ --> <refentry id="function.mysqli-fetch"> <refnamediv> <refname>mysqli_fetch</refname> <refname>stmt->fetch</refname> <refpurpose> Fetch results from a prepared statement into the bound variables </refpurpose> </refnamediv> <refsect1> <title>Description</title> <para>Procedural style:</para> <methodsynopsis> <type>mixed</type><methodname>mysqli_fetch</methodname> <methodparam><type>object</type><parameter>stmt</parameter></methodparam> </methodsynopsis> <para>Object oriented style (method):</para> <classsynopsis> <ooclass><classname>stmt</classname></ooclass> <methodsynopsis> <type>mixed</type> <methodname>fetch</methodname> <methodparam><type>void</type><parameter></parameter></methodparam> </methodsynopsis> </classsynopsis> <para> <function>mysqli_fetch</function> returns row data using the variables bound by <function>mysqli_bind_result</function>. </para> <note> <para> Note that all columns must be bound by the application before calling <function>mysqli_fetch</function>. </para> </note> </refsect1> <refsect1> <title>Return values</title> <table> <title>Return values</title> <tgroup cols='2'> <thead> <row> <entry>Value</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>&true;</entry> <entry>Success. Data has been fetched</entry> </row> <row> <entry>&false;</entry> <entry>Error occured</entry> </row> <row> <entry><literal>&null;</literal></entry> <entry>No more rows/data exists</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1> <title>See also</title> <para> <function>mysqli_prepare</function>, <function>mysqli_stmt_errno</function>, <function>mysqli_stmt_error</function>, <function>mysqli_bind_result</function> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->