update docu

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@184408 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Thomas Simenec 2005-04-15 17:53:21 +00:00
parent f0f6028120
commit 2ec5f57850
9 changed files with 26 additions and 29 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-change-user">
<refnamediv>
<refname>maxdb_change_user</refname>
@ -84,7 +84,7 @@ if ($result = $maxdb->query("SELECT * FROM dual")) {
}
/* reset all and select a new database */
if (!$maxdb->change_user("MONA", "RED", "XXXXXXX")) {
if (!$maxdb->change_user("DBADMIN", "SECRET", "DEMODB")) {
printf("Database not running\n");
} else {
printf("Database running\n");
@ -116,7 +116,7 @@ if ($result = maxdb_query($link, "SELECT * FROM dual")) {
}
/* reset all and select a new database */
if (!maxdb_change_user($link, $user, $passwd, "XXXXXXX")) {
if (!maxdb_change_user($link, "DBADMIN", "SECRET", "DEMODB")) {
printf("Database not running\n");
} else {
printf("Database running\n");
@ -134,9 +134,7 @@ maxdb_close($link);
<screen>
<![CDATA[
Result: a
PHP Warning: maxdb_change_user(): -10709 Connection failed <...>
Database not running
PHP Warning: maxdb_close(): -10821 Session not connected <...>
Database running
]]>
</screen>
</refsect1>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-connect-errno">
<refnamediv>
<refname>maxdb_connect_errno</refname>
@ -42,7 +42,7 @@
<programlisting role="php">
<![CDATA[
<?php
$link = maxdb_connect("localhost", "MONA", "RED");
$link = maxdb_connect("localhost", "XXXXXXXX", "YYYYYYYYY");
if (!$link) {
printf("Can't connect to localhost. Errorcode: %d\n", maxdb_connect_errno());
@ -53,7 +53,7 @@ if (!$link) {
</example>
</para>
<para>
The above examples would produce the following output:
The above example would produce the following output:
</para>
<screen>
<![CDATA[

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-connect-error">
<refnamediv>
<refname>maxdb_connect_error</refname>
@ -56,7 +56,7 @@ if (!$link) {
</example>
</para>
<para>
The above examples would produce the following output:
The above example would produce the following output:
</para>
<screen>
<![CDATA[

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-debug">
<refnamediv>
<refname>maxdb_debug</refname>
@ -56,7 +56,7 @@ maxdb_close($link);
</programlisting>
</example>
<para>
The above examples produces no output.
The above example produces no output.
</para>
</refsect1>
</refentry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<refentry id="function.maxdb-field-count">
<refnamediv>
<refname>maxdb_field_count</refname>
@ -104,6 +104,9 @@ maxdb_close($link);
</programlisting>
</example>
</para>
<para>
The above example produces no output.
</para>
</refsect1>
</refentry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-multi-query">
<refnamediv>
<refname>maxdb_multi_query</refname>
@ -59,7 +59,6 @@ if (maxdb_connect_errno()) {
}
$query = "SELECT * FROM dual";
$query .= "SELECT name FROM hotel.city ORDER BY zip";
/* execute multi query */
if ($maxdb->multi_query($query)) {
@ -98,7 +97,6 @@ if (maxdb_connect_errno()) {
}
$query = "SELECT * FROM dual";
$query .= "SELECT name FROM hotel.city ORDER BY zip";
/* execute multi query */
if (maxdb_multi_query($link, $query)) {
@ -128,7 +126,7 @@ maxdb_close($link);
</para>
<screen>
<![CDATA[
Warning: maxdb_multi_query(): -3008 POS(31) Invalid keyword or missing delimiter <...>
a
]]>
</screen>
</refsect1>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-select-db">
<refnamediv>
<refname>maxdb_select_db</refname>
@ -61,7 +61,7 @@ if ($result = $maxdb->query("SELECT SERVERDB FROM USERS WHERE USERNAME='MONA'"))
$result->close();
}
/* change db to world db */
/* change db to non existing db */
$maxdb->select_db("XXXXXXXX");
/* return name of current default database */
@ -96,7 +96,7 @@ if ($result = maxdb_query($link, "SELECT SERVERDB FROM USERS WHERE USERNAME='MON
maxdb_free_result($result);
}
/* change db to world db */
/* change db to non existing db */
maxdb_select_db($link, "XXXXXXXX");
/* return name of current default database */

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.maxdb-use-result">
<refnamediv>
<refname>maxdb_use_result</refname>
@ -54,8 +54,7 @@ if (maxdb_connect_errno()) {
exit();
}
$query = "SELECT * FROM DUAL;";
$query .= "SELECT name FROM hotel.city";
$query = "SELECT * FROM DUAL";
/* execute multi query */
if ($maxdb->multi_query($query)) {
@ -93,8 +92,7 @@ if (maxdb_connect_errno()) {
exit();
}
$query = "SELECT * FROM DUAL;";
$query .= "SELECT Name FROM City ORDER BY ID LIMIT 20, 5";
$query = "SELECT * FROM DUAL";
/* execute multi query */
if (maxdb_multi_query($link, $query)) {
@ -124,7 +122,7 @@ maxdb_close($link);
</para>
<screen>
<![CDATA[
Warning: maxdb_multi_query(): -3008 POS(19) Invalid keyword or missing delimiter <...>
a
]]>
</screen>
</refsect1>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<reference id="ref.maxdb">
<title>MaxDB PHP Extension</title>
<titleabbrev>MaxDB</titleabbrev>
@ -18,7 +18,7 @@
underlying database servers, MaxDB and MySQL.
</para>
<para>
The differences to mysqli are in the following functions:
The main differences to mysqli are in the following functions:
</para>
<simplelist>
<member><function>maxdb_character_set_name</function> - Returns only ascii or unicode.</member>