didou Wed Jul 16 13:20:56 2003 EDT
Modified files:
/phpdoc/en/reference/sesam/functions sesam-affected-rows.xml
sesam-disconnect.xml
sesam-errormsg.xml
sesam-execimm.xml
Log:
adding PHP tags in the examples and some structuring
Index: phpdoc/en/reference/sesam/functions/sesam-affected-rows.xml
diff -u phpdoc/en/reference/sesam/functions/sesam-affected-rows.xml:1.2
phpdoc/en/reference/sesam/functions/sesam-affected-rows.xml:1.3
--- phpdoc/en/reference/sesam/functions/sesam-affected-rows.xml:1.2 Wed Apr 17
02:43:53 2002
+++ phpdoc/en/reference/sesam/functions/sesam-affected-rows.xml Wed Jul 16 13:20:56
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/sesam.xml, last change in rev 1.1 -->
<refentry id="function.sesam-affected-rows">
<refnamediv>
@@ -32,21 +32,26 @@
number returned is the number of affected rows.
</para>
<para>
- See also: <function>sesam_query</function> and
- <function>sesam_execimm</function>
- </para>
- <informalexample>
- <programlisting role="php">
+ <example>
+ <title><function>sesam_affected_rows</function> example</title>
+ <programlisting role="php">
<![CDATA[
+<?php
$result = sesam_execimm ("DELETE FROM PHONE WHERE LASTNAME = '".strtoupper
($name)."'");
if (!$result) {
... error ...
}
print sesam_affected_rows ($result).
- " entries with last name ".$name." deleted.\n"
+ " entries with last name ".$name." deleted.\n";
+?>
]]>
- </programlisting>
- </informalexample>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ See also <function>sesam_query</function> and
+ <function>sesam_execimm</function>.
+ </para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/sesam/functions/sesam-disconnect.xml
diff -u phpdoc/en/reference/sesam/functions/sesam-disconnect.xml:1.2
phpdoc/en/reference/sesam/functions/sesam-disconnect.xml:1.3
--- phpdoc/en/reference/sesam/functions/sesam-disconnect.xml:1.2 Wed Apr 17
02:43:54 2002
+++ phpdoc/en/reference/sesam/functions/sesam-disconnect.xml Wed Jul 16 13:20:56
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/sesam.xml, last change in rev 1.1 -->
<refentry id="function.sesam-disconnect">
<refnamediv>
@@ -35,18 +35,22 @@
fail.
</para>
<para>
- See also: <function>sesam_connect</function>.
<example>
<title>Closing a SESAM connection</title>
<programlisting role="php">
<![CDATA[
+<?php
if (sesam_connect ("mycatalog", "myschema", "otto")) {
... some queries and stuff ...
sesam_disconnect();
}
+?>
]]>
</programlisting>
</example>
+ </para>
+ <para>
+ See also <function>sesam_connect</function>.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/sesam/functions/sesam-errormsg.xml
diff -u phpdoc/en/reference/sesam/functions/sesam-errormsg.xml:1.2
phpdoc/en/reference/sesam/functions/sesam-errormsg.xml:1.3
--- phpdoc/en/reference/sesam/functions/sesam-errormsg.xml:1.2 Wed Apr 17 02:43:54
2002
+++ phpdoc/en/reference/sesam/functions/sesam-errormsg.xml Wed Jul 16 13:20:56
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/sesam.xml, last change in rev 1.1 -->
<refentry id="function.sesam-errormsg">
<refnamediv>
@@ -16,17 +16,22 @@
Returns the SESAM error message associated with the most recent
SESAM error.
</para>
- <informalexample>
- <programlisting role="php">
+ <para>
+ <example>
+ <title><function>sesam_errormsg</function> example</title>
+ <programlisting role="php">
<![CDATA[
+<?php
if (!sesam_execimm ($stmt))
printf ("%s<br>\n", sesam_errormsg());
+?>
]]>
- </programlisting>
- </informalexample>
+ </programlisting>
+ </example>
+ </para>
<para>
- See also: <function>sesam_diagnostic</function> for the full set
- of SESAM SQL status information
+ See also <function>sesam_diagnostic</function> for the full set
+ of SESAM SQL status information.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/sesam/functions/sesam-execimm.xml
diff -u phpdoc/en/reference/sesam/functions/sesam-execimm.xml:1.2
phpdoc/en/reference/sesam/functions/sesam-execimm.xml:1.3
--- phpdoc/en/reference/sesam/functions/sesam-execimm.xml:1.2 Wed Apr 17 02:43:54
2002
+++ phpdoc/en/reference/sesam/functions/sesam-execimm.xml Wed Jul 16 13:20:56
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/sesam.xml, last change in rev 1.1 -->
<refentry id="function.sesam-execimm">
<refnamediv>
@@ -43,16 +43,20 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$stmt = "INSERT INTO mytable VALUES ('one', 'two')";
$result = sesam_execimm ($stmt);
$err = sesam_diagnostic();
print ("sqlstate = ".$err["sqlstate"]."\n".
"Affected rows = ".$err["rowcount"]." == ".
sesam_affected_rows($result)."\n");
+?>
]]>
</programlisting>
</informalexample>
- See also: <function>sesam_query</function> and
+ </para>
+ <para>
+ See also <function>sesam_query</function> and
<function>sesam_affected_rows</function>.
</para>
</refsect1>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php