📄 function.msql-result.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Get result data</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="function.msql-regcase.html">msql_regcase</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.msql-select-db.html">msql_select_db</a></div> <div class="up"><a href="ref.msql.html">mSQL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.msql-result" class="refentry"> <div class="refnamediv"> <h1 class="refname">msql_result</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">msql_result</span> — <span class="dc-title">Get result data</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><b>msql_result</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$row</tt></span> [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$field</tt></span> ] )</div> <p class="para rdfs-comment"> <b>msql_result()</b> returns the contents of one cell from a mSQL result set. </p> <p class="para"> When working on large result sets, you should consider using one of the functions that fetch an entire row (specified below). As these functions return the contents of multiple cells in one function call, they are often much quicker than <b>msql_result()</b>. </p> <p class="para"> Recommended high-performance alternatives: <a href="function.msql-fetch-row.html" class="function">msql_fetch_row()</a>, <a href="function.msql-fetch-array.html" class="function">msql_fetch_array()</a>, and <a href="function.msql-fetch-object.html" class="function">msql_fetch_object()</a>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt><span class="term"><i><tt class="parameter">result</tt></i></span><dd><p class="para">The result <a href="language.types.resource.html" class="type resource">resource</a> thatis being evaluated. This result comes from a call to <a href="function.msql-query.html" class="function">msql_query()</a>.</p></dd></dt> <dt> <span class="term"><i><tt class="parameter">row</tt></i></span> <dd> <p class="para"> The row offset. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">field</tt></i></span> <dd> <p class="para"> Can be the field's offset, or the field's name, or the field's table dot field's name (tablename.fieldname.). If the column name has been aliased ('select foo as bar from ...'), use the alias instead of the column name. </p> <blockquote><p><b class="note">Note</b>: Specifying a numeric field offset is much quicker than specifying a fieldname or tablename.fieldname. <br /> </p></blockquote> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the contents of the cell at the row and offset in the specified mSQL result set. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.msql-regcase.html">msql_regcase</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.msql-select-db.html">msql_select_db</a></div> <div class="up"><a href="ref.msql.html">mSQL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -