mysqli-stmt.execute.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 134 行 · 第 1/2 页
HTML
134 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Executes a prepared Query</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.error.html">mysqli_stmt->error</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqli-stmt.fetch.html">mysqli_stmt::fetch</a></div> <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="mysqli-stmt.execute" class="refentry"> <div class="refnamediv"> <h1 class="refname">mysqli_stmt->execute</h1> <h1 class="refname">mysqli_stmt_execute</h1> <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli_stmt->execute</span> -- <span class="refname">mysqli_stmt_execute</span> — <span class="dc-title">Executes a prepared Query</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <p class="para">Object oriented style (method):</p> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>mysqli_stmt::execute</b></b></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment">Procedural style:</p> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>mysqli_stmt_execute</b></b></span> ( <span class="methodparam"><span class="type"><span class="type mysqli_stmt">mysqli_stmt</span></span> <tt class="parameter">$stmt</tt></span> )</div> <p class="para rdfs-comment"> Executes a query that has been previously prepared using the <a href="mysqli.prepare.html" class="function">mysqli_prepare()</a> function. When executed any parameter markers which exist will automatically be replaced with the appropiate data. </p> <p class="para"> If the statement is <i>UPDATE</i>, <i>DELETE</i>, or <i>INSERT</i>, the total number of affected rows can be determined by using the <a href="mysqli-stmt.affected-rows.html" class="function">mysqli_stmt_affected_rows()</a> function. Likewise, if the query yields a result set the <a href="mysqli-stmt.fetch.html" class="function">mysqli_stmt_fetch()</a> function is used. </p> <blockquote><p><b class="note">Note</b>: When using <b>mysqli_stmt_execute()</b>, the <a href="mysqli-stmt.fetch.html" class="function">mysqli_stmt_fetch()</a> function must be used to fetch the data prior to performing any additional queries. <br /> </p></blockquote> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt><span class="term"><i><tt class="parameter">stmt</tt></i></span><dd><p class="para">Procedural style only: A statement identifier
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?