didou Wed Jul 16 13:11:50 2003 EDT
Modified files:
/phpdoc/en/reference/fbsql/functions fbsql-field-name.xml
fbsql-list-dbs.xml
fbsql-list-fields.xml
Log:
adding PHP tags in the examples
Index: phpdoc/en/reference/fbsql/functions/fbsql-field-name.xml
diff -u phpdoc/en/reference/fbsql/functions/fbsql-field-name.xml:1.2
phpdoc/en/reference/fbsql/functions/fbsql-field-name.xml:1.3
--- phpdoc/en/reference/fbsql/functions/fbsql-field-name.xml:1.2 Wed Apr 17
02:37:52 2002
+++ phpdoc/en/reference/fbsql/functions/fbsql-field-name.xml Wed Jul 16 13:11:50
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/fbsql.xml, last change in rev 1.1 -->
<refentry id="function.fbsql-field-name">
<refnamediv>
@@ -35,6 +35,7 @@
<title><function>fbsql_field_name</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
// The users table consists of three fields:
// user_id
// username
@@ -44,20 +45,19 @@
echo fbsql_field_name($res, 0) . "\n";
echo fbsql_field_name($res, 2);
+?>
]]>
</programlisting>
- </example>
- </para>
- <para>
- The above example would produce the following output:
- <informalexample>
- <programlisting>
+ <para>
+ The above example would produce the following output:
+ </para>
+ <screen>
<![CDATA[
user_id
password
]]>
- </programlisting>
- </informalexample>
+ </screen>
+ </example>
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/fbsql/functions/fbsql-list-dbs.xml
diff -u phpdoc/en/reference/fbsql/functions/fbsql-list-dbs.xml:1.2
phpdoc/en/reference/fbsql/functions/fbsql-list-dbs.xml:1.3
--- phpdoc/en/reference/fbsql/functions/fbsql-list-dbs.xml:1.2 Wed Apr 17 02:37:53
2002
+++ phpdoc/en/reference/fbsql/functions/fbsql-list-dbs.xml Wed Jul 16 13:11:50
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/fbsql.xml, last change in rev 1.1 -->
<refentry id="function.fbsql-list-dbs">
<refnamediv>
@@ -35,20 +35,18 @@
}
]]>
</programlisting>
- </example>
- </para>
- <para>
- The above example would produce the following output:
- <informalexample>
- <programlisting>
+ <para>
+ The above example would produce the following output:
+ </para>
+ <screen>
<![CDATA[
database1
database2
database3
...
]]>
- </programlisting>
- </informalexample>
+ </screen>
+ </example>
</para>
<note>
<para>
Index: phpdoc/en/reference/fbsql/functions/fbsql-list-fields.xml
diff -u phpdoc/en/reference/fbsql/functions/fbsql-list-fields.xml:1.4
phpdoc/en/reference/fbsql/functions/fbsql-list-fields.xml:1.5
--- phpdoc/en/reference/fbsql/functions/fbsql-list-fields.xml:1.4 Fri Nov 8
22:28:04 2002
+++ phpdoc/en/reference/fbsql/functions/fbsql-list-fields.xml Wed Jul 16 13:11:50
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/fbsql.xml, last change in rev 1.1 -->
<refentry id="function.fbsql-list-fields">
<refnamediv>
@@ -37,6 +37,7 @@
<title><function>fbsql_list_fields</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
$link = fbsql_connect('localhost', 'myname', 'secret');
$fields = fbsql_list_fields("database1", "table1", $link);
@@ -45,22 +46,21 @@
for ($i = 0; $i < $columns; $i++) {
echo fbsql_field_name($fields, $i) . "\n";;
}
+?>
]]>
</programlisting>
- </example>
- </para>
- <para>
- The above example would produce the following output:
- <informalexample>
- <programlisting>
+ <para>
+ The above example would produce the following output:
+ </para>
+ <screen>
<![CDATA[
field1
field2
field3
...
]]>
- </programlisting>
- </informalexample>
+ </screen>
+ </example>
</para>
</refsect1>
</refentry>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php