📄 class.mysqli-result.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>The MySQLi_Result class</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqli-stmt.store-result.html">mysqli_stmt::store_result</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqli-result.current-field.html">mysqli_result->current_field</a></div> <div class="up"><a href="book.mysqli.html">Mysqli</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1 class="title">The MySQLi_Result class</h1> <div class="partintro"> <div id="mysqli-result.intro" class="section"> <h2 class="title">Introduction</h2> <p class="para"> Represents the result set obtained from a query against the database. </p> </div> <div id="mysqli-result.synopsis" class="section"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"><b class="classname">MySQLi_Result</b></div> <div class="classsynopsisinfo"> <span class="ooclass"> <b class="classname">MySQLi_Result</b> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Properties */</div> <div class="fieldsynopsis"> <span class="type">int</span> <var class="varname">$current_field</var> ;</div><div class="fieldsynopsis"><span class="type">int</span> <var class="varname">$field_count</var>;</div><div class="fieldsynopsis"><span class="type">array</span> <var class="varname">$lengths</var>;</div><div class="fieldsynopsis"><span class="type">int</span> <var class="varname">$num_rows</var>;</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><a href="mysqli-result.current-field.html" class="function">mysqli_field_tell</a></b></span> ( <span class="methodparam"><span class="type"><span class="type mysqli_result">mysqli_result</span></span> <tt class="parameter">$result</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="mysqli-result.data-seek.html" class="function">mysqli_result::data_seek</a></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$offset</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">mixed</span> <span class="methodname"><b><a href="mysqli-result.fetch-array.html" class="function">mysqli_result::fetch_array</a></b></span> ([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$resulttype</tt></span> ] )</div><div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><a href="mysqli-result.fetch-assoc.html" class="function">mysqli_result::fetch_assoc</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">object</span> <span class="methodname"><b><a href="mysqli-result.fetch-field-direct.html" class="function">mysqli_result::fetch_field_direct</a></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$fieldnr</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">object</span> <span class="methodname"><b><a href="mysqli-result.fetch-field.html" class="function">mysqli_result::fetch_field</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><a href="mysqli-result.fetch-fields.html" class="function">mysqli_result::fetch_fields</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">object</span> <span class="methodname"><b><a href="mysqli-result.fetch-object.html" class="function">mysqli_result::fetch_object</a></b></span> ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$class_name</tt></span> [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$params</tt></span> ]] )</div><div class="methodsynopsis dc-description"> <span class="type">mixed</span> <span class="methodname"><b><a href="mysqli-result.fetch-row.html" class="function">mysqli_result::fetch_row</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><a href="mysqli-result.field-count.html" class="function">mysqli_num_fields</a></b></span> ( <span class="methodparam"><span class="type"><span class="type mysqli_result">mysqli_result</span></span> <tt class="parameter">$result</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="mysqli-result.field-seek.html" class="function">mysqli_result::field_seek</a></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$fieldnr</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><b><a href="mysqli-result.free.html" class="function">mysqli_result::free</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><a href="mysqli-result.lengths.html" class="function">mysqli_fetch_lengths</a></b></span> ( <span class="methodparam"><span class="type"><span class="type mysqli_result">mysqli_result</span></span> <tt class="parameter">$result</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><a href="mysqli-result.num-rows.html" class="function">mysqli_num_rows</a></b></span> ( <span class="methodparam"><span class="type"><span class="type mysqli_result">mysqli_result</span></span> <tt class="parameter">$result</tt></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mysqli-result.current-field.html">mysqli_result->current_field</a> 鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -