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:
Kristina Chodorow 2010-02-24 15:06:34 +00:00
parent da61e9c617
commit ed7fb09b68

View file

@ -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>