uTools-Manuals/docs/php/ifx_errormsg.html
2019-04-28 19:00:34 +08:00

88 lines
3.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Returns error message of last Informix call</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.ifx-errormsg" class="refentry">
<div class="refnamediv">
<h1 class="refname">ifx_errormsg</h1>
<p class="verinfo">(PHP 4, PHP 5 &lt; 5.2.1)</p><p class="refpurpose"><span class="refname">ifx_errormsg</span> &mdash; <span class="dc-title">Returns error message of last Informix call</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.ifx-errormsg-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>ifx_errormsg</strong></span>
([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$errorcode</code></span>
] ) : <span class="type">string</span></div>
<p class="para rdfs-comment">
Returns the Informix error message associated with the most recent
Informix error.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.ifx-errormsg-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">errorcode</code></dt>
<dd>
<p class="para">
If specified, the function will return the message corresponding to
the specified code.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.ifx-errormsg-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Return the error message, as a string.
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.ifx-errormsg-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-1286">
<p><strong>Example #1 <span class="function"><strong>ifx_errormsg()</strong></span> example</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s\n&lt;br&gt;"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ifx_errormsg</span><span style="color: #007700">(-</span><span style="color: #0000BB">201</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.ifx-errormsg-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="ifx_error.html" class="function" rel="rdfs-seeAlso">ifx_error()</a> - Returns error code of last Informix call</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>