mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added authenticate return vals
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295473 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
da61e9c617
commit
ed7fb09b68
1 changed files with 14 additions and 1 deletions
|
@ -71,7 +71,20 @@ $result = $db->command(array("authenticate" => 1,
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns database response.
|
||||
Returns database response. If the login was successful, it will return
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
array("ok" => 1)
|
||||
]]>
|
||||
</programlisting>
|
||||
If something went wrong, it will return
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
array("ok" => 0, "errmsg" => "auth fails")
|
||||
]]>
|
||||
</programlisting>
|
||||
("auth fails" could be another message, depending on database version and what
|
||||
when wrong).
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue