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

69 lines
2.5 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 number of errors and last error message</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.session-pgsql-get-error" class="refentry">
<div class="refnamediv">
<h1 class="refname">session_pgsql_get_error</h1>
<p class="verinfo">(PECL session_pgsql SVN)</p><p class="refpurpose"><span class="refname">session_pgsql_get_error</span> &mdash; <span class="dc-title">Returns number of errors and last error message</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.session-pgsql-get-error-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>session_pgsql_get_error</strong></span>
([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$with_error_message</code><span class="initializer"> = <strong><code>FALSE</code></strong></span></span>
] ) : <span class="type">array</span></div>
<p class="para rdfs-comment">
Get the number of errors and optional the error messages.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.session-pgsql-get-error-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">with_error_message</code></dt>
<dd>
<p class="para">
Set to <strong><code>TRUE</code></strong> the literal error message for each error is also returned.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.session-pgsql-get-error-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
The number of errors are returned as <span class="type"><a href="language.types.array.html" class="type array">array</a></span>.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.session-pgsql-get-error-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="session_pgsql_add_error.html" class="function" rel="rdfs-seeAlso">session_pgsql_add_error()</a> - Increments error counts and sets last error message</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>