didou Mon Dec 15 11:50:39 2003 EDT
Modified files:
/phpdoc/en/reference/gettext/functions gettext.xml
/phpdoc/en/reference/gmp reference.xml
/phpdoc/en/reference/gmp/functions gmp-div-qr.xml gmp-init.xml
gmp-strval.xml
/phpdoc/en/reference/http/functions header.xml headers-list.xml
headers-sent.xml setcookie.xml
/phpdoc/en/reference/hwapi/functions hwapi-object.xml
/phpdoc/en/reference/ibase/functions ibase-blob-get.xml
ibase-fetch-object.xml
ibase-name-result.xml
ibase-num-fields.xml
ibase-set-event-handler.xml
/phpdoc/en/reference/iconv/functions iconv.xml
/phpdoc/en/reference/ifx/functions ifx-affected-rows.xml
ifx-fetch-row.xml
ifx-htmltbl-result.xml
ifx-query.xml
Log:
Merry XHTML and CS compliant christmas all \!
Index: phpdoc/en/reference/gettext/functions/gettext.xml
diff -u phpdoc/en/reference/gettext/functions/gettext.xml:1.5
phpdoc/en/reference/gettext/functions/gettext.xml:1.6
--- phpdoc/en/reference/gettext/functions/gettext.xml:1.5 Sat Aug 16 14:59:11
2003
+++ phpdoc/en/reference/gettext/functions/gettext.xml Mon Dec 15 11:50:33 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
<refentry id="function.gettext">
<refnamediv>
@@ -32,10 +32,10 @@
textdomain("myPHPApp");
// Print a test message
-print gettext("Welcome to My PHP Application");
+echo gettext("Welcome to My PHP Application");
// Or use the alias _() for gettext()
-print _("Have a nice day");
+echo _("Have a nice day");
?>
]]>
</programlisting>
Index: phpdoc/en/reference/gmp/reference.xml
diff -u phpdoc/en/reference/gmp/reference.xml:1.5
phpdoc/en/reference/gmp/reference.xml:1.6
--- phpdoc/en/reference/gmp/reference.xml:1.5 Wed Nov 27 19:42:46 2002
+++ phpdoc/en/reference/gmp/reference.xml Mon Dec 15 11:50:34 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<reference id="ref.gmp">
<title>GMP functions</title>
<titleabbrev>GMP</titleabbrev>
@@ -74,14 +74,15 @@
<programlisting role="php">
<![CDATA[
<?php
-function fact ($x) {
- if ($x <= 1)
+function fact($x) {
+ if ($x <= 1) {
return 1;
- else
- return gmp_mul ($x, fact ($x-1));
+ } else {
+ return gmp_mul($x, fact($x-1));
+ }
}
-print gmp_strval (fact (1000)) . "\n";
+echo gmp_strval(fact(1000)) . "\n";
?>
]]>
</programlisting>
Index: phpdoc/en/reference/gmp/functions/gmp-div-qr.xml
diff -u phpdoc/en/reference/gmp/functions/gmp-div-qr.xml:1.2
phpdoc/en/reference/gmp/functions/gmp-div-qr.xml:1.3
--- phpdoc/en/reference/gmp/functions/gmp-div-qr.xml:1.2 Wed Apr 17 02:38:24
2002
+++ phpdoc/en/reference/gmp/functions/gmp-div-qr.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/gmp.xml, last change in rev 1.1 -->
<refentry id="function.gmp-div-qr">
<refnamediv>
@@ -31,10 +31,10 @@
<programlisting role="php">
<![CDATA[
<?php
- $a = gmp_init ("0x41682179fbf5");
- $res = gmp_div_qr ($a, "0xDEFE75");
+ $a = gmp_init("0x41682179fbf5");
+ $res = gmp_div_qr($a, "0xDEFE75");
printf("Result is: q - %s, r - %s",
- gmp_strval ($res[0]), gmp_strval ($res[1]));
+ gmp_strval($res[0]), gmp_strval($res[1]));
?>
]]>
</programlisting>
Index: phpdoc/en/reference/gmp/functions/gmp-init.xml
diff -u phpdoc/en/reference/gmp/functions/gmp-init.xml:1.2
phpdoc/en/reference/gmp/functions/gmp-init.xml:1.3
--- phpdoc/en/reference/gmp/functions/gmp-init.xml:1.2 Wed Apr 17 02:38:24 2002
+++ phpdoc/en/reference/gmp/functions/gmp-init.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/gmp.xml, last change in rev 1.1 -->
<refentry id="function.gmp-init">
<refnamediv>
@@ -23,8 +23,8 @@
<programlisting role="php">
<![CDATA[
<?php
- $a = gmp_init (123456);
- $b = gmp_init ("0xFFFFDEBACDFEDF7200");
+ $a = gmp_init(123456);
+ $b = gmp_init("0xFFFFDEBACDFEDF7200");
?>
]]>
</programlisting>
Index: phpdoc/en/reference/gmp/functions/gmp-strval.xml
diff -u phpdoc/en/reference/gmp/functions/gmp-strval.xml:1.2
phpdoc/en/reference/gmp/functions/gmp-strval.xml:1.3
--- phpdoc/en/reference/gmp/functions/gmp-strval.xml:1.2 Wed Apr 17 02:38:27
2002
+++ phpdoc/en/reference/gmp/functions/gmp-strval.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/gmp.xml, last change in rev 1.1 -->
<refentry id="function.gmp-strval">
<refnamediv>
@@ -25,7 +25,7 @@
<![CDATA[
<?php
$a = gmp_init("0x41682179fbf5");
- printf ("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36));
+ printf("Decimal: %s, 36-based: %s", gmp_strval($a), gmp_strval($a,36));
?>
]]>
</programlisting>
Index: phpdoc/en/reference/http/functions/header.xml
diff -u phpdoc/en/reference/http/functions/header.xml:1.20
phpdoc/en/reference/http/functions/header.xml:1.21
--- phpdoc/en/reference/http/functions/header.xml:1.20 Mon Dec 1 07:31:57 2003
+++ phpdoc/en/reference/http/functions/header.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.header">
<refnamediv>
@@ -33,7 +33,7 @@
<![CDATA[
<?php
header('WWW-Authenticate: Negotiate');
-header('WWW-Authenticate: NTLM', FALSE);
+header('WWW-Authenticate: NTLM', false);
?>
]]>
</programlisting>
@@ -122,9 +122,9 @@
<programlisting role="php">
<![CDATA[
<?php
-header("Location: http://".$_SERVER['HTTP_HOST']
- .dirname($_SERVER['PHP_SELF'])
- ."/".$relative_url);
+header("Location: http://" . $_SERVER['HTTP_HOST']
+ . dirname($_SERVER['PHP_SELF'])
+ . "/" . $relative_url);
?>
]]>
</programlisting>
Index: phpdoc/en/reference/http/functions/headers-list.xml
diff -u phpdoc/en/reference/http/functions/headers-list.xml:1.2
phpdoc/en/reference/http/functions/headers-list.xml:1.3
--- phpdoc/en/reference/http/functions/headers-list.xml:1.2 Mon Nov 24 08:23:09
2003
+++ phpdoc/en/reference/http/functions/headers-list.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="function.headers-list">
<refnamediv>
<refname>headers_list</refname>
@@ -24,7 +24,7 @@
<?php
/* setcookie() will add a response header on its own */
-setcookie('foo','bar');
+setcookie('foo', 'bar');
/* Define a custom response header
This will be ignored by most clients */
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.13
phpdoc/en/reference/http/functions/headers-sent.xml:1.14
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.13 Wed Jun 18 05:26:18
2003
+++ phpdoc/en/reference/http/functions/headers-sent.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.7 -->
<refentry id="function.headers-sent">
<refnamediv>
@@ -42,7 +42,7 @@
// If no headers are sent, send one
if (!headers_sent()) {
- header ('Location: http://www.example.com/');
+ header('Location: http://www.example.com/');
exit;
}
@@ -50,13 +50,13 @@
// Note that $filename and $linenum are passed in for later use.
// Do not assign them values beforehand.
if (!headers_sent($filename, $linenum)) {
- header ('Location: http://www.example.com/');
+ header('Location: http://www.example.com/');
exit;
// You would most likely trigger an error here.
} else {
- print "Headers already sent in $filename on line $linenum\n" .
+ echo "Headers already sent in $filename on line $linenum\n" .
"Cannot redirect, for now please click this <a " .
"href=\"http://www.example.com\">link</a> instead\n";
exit;
Index: phpdoc/en/reference/http/functions/setcookie.xml
diff -u phpdoc/en/reference/http/functions/setcookie.xml:1.25
phpdoc/en/reference/http/functions/setcookie.xml:1.26
--- phpdoc/en/reference/http/functions/setcookie.xml:1.25 Sun Sep 28 03:15:02
2003
+++ phpdoc/en/reference/http/functions/setcookie.xml Mon Dec 15 11:50:35 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.25 $ -->
+<!-- $Revision: 1.26 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.setcookie">
<refnamediv>
@@ -213,9 +213,9 @@
<?php
$value = 'something from somewhere';
-setcookie ("TestCookie", $value);
-setcookie ("TestCookie", $value,time()+3600); /* expire in 1 hour */
-setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".example.com", 1);
+setcookie("TestCookie", $value);
+setcookie("TestCookie", $value, time()+3600); /* expire in 1 hour */
+setcookie("TestCookie", $value, time()+3600, "/~rasmus/", ".example.com", 1);
?>
]]>
</programlisting>
@@ -277,9 +277,9 @@
<![CDATA[
<?php
// set the cookies
-setcookie ("cookie[three]", "cookiethree");
-setcookie ("cookie[two]", "cookietwo");
-setcookie ("cookie[one]", "cookieone");
+setcookie("cookie[three]", "cookiethree");
+setcookie("cookie[two]", "cookietwo");
+setcookie("cookie[one]", "cookieone");
// after the page reloads, print them out
if (isset($_COOKIE['cookie'])) {
@@ -287,17 +287,19 @@
echo "$name : $value <br />\n";
}
}
-
-/* which prints
-
+?>
+]]>
+ </programlisting>
+ <para>
+ which prints
+ </para>
+ <screen>
+<![CDATA[
three : cookiethree
two : cookietwo
one : cookieone
-
-*/
-?>
]]>
- </programlisting>
+ </screen>
</example>
</para>
<note>
Index: phpdoc/en/reference/hwapi/functions/hwapi-object.xml
diff -u phpdoc/en/reference/hwapi/functions/hwapi-object.xml:1.5
phpdoc/en/reference/hwapi/functions/hwapi-object.xml:1.6
--- phpdoc/en/reference/hwapi/functions/hwapi-object.xml:1.5 Thu Dec 11 10:41:58
2003
+++ phpdoc/en/reference/hwapi/functions/hwapi-object.xml Mon Dec 15 11:50:36
2003
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1' ?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/hwapi.xml, last change in rev 1.1 -->
<refentry id="function.hwapi-object">
<refnamediv>
@@ -32,8 +32,8 @@
<?php
function handle_error($error) {
$reason = $error->reason(0);
- echo "Type: <B>";
- switch($reason->type()) {
+ echo "Type: <b>";
+ switch ($reason->type()) {
case 0:
echo "Error";
break;
@@ -44,25 +44,25 @@
echo "Message";
break;
}
- echo "</B><BR>\n";
- echo "Description: ".$reason->description("en")."<BR>\n";
+ echo "</b><br />\n";
+ echo "Description: " . $reason->description("en") . "<br />\n";
}
function list_attr($obj) {
- echo "<TABLE>\n";
+ echo "<table>\n";
$count = $obj->count();
- for($i=0; $i<$count; $i++) {
+ for ($i=0; $i<$count; $i++) {
$attr = $obj->attribute($i);
- printf(" <TR><TD ALIGN=right bgcolor=#c0c0c0><B>%s</B></TD><TD
bgcolor=#F0F0F0>%s</TD>\n",
+ printf("<tr><td align=\"right\" bgcolor=\"#c0c0c0\"><b>%s</b></td><td
bgcolor\="#F0F0F0\">%s</td></tr>\n",
$attr->key(), $attr->value());
}
- echo "</TABLE>\n";
+ echo "</table>\n";
}
$hwapi = hwapi_hgcsp($g_config[HOSTNAME]);
$parms = array("objectIdentifier"=>"rootcollection",
"attributeSelector"=>array("Title", "Name", "DocumentType"));
$root = $hwapi->object($parms);
-if(get_class($root) == "HW_API_Error") {
+if (get_class($root) == "HW_API_Error") {
handle_error($root);
exit;
}
Index: phpdoc/en/reference/ibase/functions/ibase-blob-get.xml
diff -u phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.4
phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.5
--- phpdoc/en/reference/ibase/functions/ibase-blob-get.xml:1.4 Tue Sep 2 05:41:07
2003
+++ phpdoc/en/reference/ibase/functions/ibase-blob-get.xml Mon Dec 15 11:50:36
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.41 -->
<refentry id='function.ibase-blob-get'>
<refnamediv>
@@ -24,16 +24,16 @@
<![CDATA[
<?php
$sql = "SELECT blob_value FROM table";
- $result = ibase_query( $sql );
- $data = ibase_fetch_object( $result );
- $blob_data = ibase_blob_info( $data->BLOB_VALUE );
- $blob_hndl = ibase_blob_open( $data->BLOB_VALUE );
- print ibase_blob_get( $blob_hndl, $blob_data[0] );
+ $result = ibase_query($sql);
+ $data = ibase_fetch_object($result);
+ $blob_data = ibase_blob_info($data->BLOB_VALUE);
+ $blob_hndl = ibase_blob_open($data->BLOB_VALUE);
+ echo ibase_blob_get($blob_hndl, $blob_data[0]);
?>
]]>
</programlisting>
</informalexample>
- Whilst this example doesn't do much more than a 'ibase_blob_echo(
$data->BLOB_VALUE )' would do,
+ Whilst this example doesn't do much more than a
'ibase_blob_echo($data->BLOB_VALUE)' would do,
it does show you how to get information into a $variable to manipulate as you
please.
</para>
<note>
Index: phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml
diff -u phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.6
phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.7
--- phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml:1.6 Tue Sep 2
07:56:13 2003
+++ phpdoc/en/reference/ibase/functions/ibase-fetch-object.xml Mon Dec 15 11:50:36
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.9 -->
<refentry id="function.ibase-fetch-object">
<refnamediv>
@@ -22,13 +22,13 @@
<programlisting role="php">
<![CDATA[
<?php
- $dbh = ibase_connect ($host, $username, $password);
+ $dbh = ibase_connect($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
- $sth = ibase_query ($dbh, $stmt);
- while ($row = ibase_fetch_object ($sth)) {
- print $row->email . "\n";
+ $sth = ibase_query($dbh, $stmt);
+ while ($row = ibase_fetch_object($sth)) {
+ echo $row->email . "\n";
}
- ibase_close ($dbh);
+ ibase_close($dbh);
?>
]]>
</programlisting>
Index: phpdoc/en/reference/ibase/functions/ibase-name-result.xml
diff -u phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.1
phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.2
--- phpdoc/en/reference/ibase/functions/ibase-name-result.xml:1.1 Tue Sep 2
07:40:36 2003
+++ phpdoc/en/reference/ibase/functions/ibase-name-result.xml Mon Dec 15 11:50:37
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="function.ibase-name-result">
<refnamediv>
<refname>ibase_name_result</refname>
@@ -22,13 +22,13 @@
<programlisting role="php">
<![CDATA[
<?php
- $result = ibase_query( "SELECT field1,field2 FROM table FOR UPDATE" );
- ibase_name_result($result,"my_cursor");
+ $result = ibase_query("SELECT field1,field2 FROM table FOR UPDATE");
+ ibase_name_result($result, "my_cursor");
$updateqry = ibase_prepare("UPDATE table SET field2 = ? WHERE CURRENT OF
my_cursor");
for ($i = 0; ibase_fetch_row($result); ++$i) {
- ibase_execute($updateqry,$i);
+ ibase_execute($updateqry, $i);
}
?>
]]>
Index: phpdoc/en/reference/ibase/functions/ibase-num-fields.xml
diff -u phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.4
phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.5
--- phpdoc/en/reference/ibase/functions/ibase-num-fields.xml:1.4 Mon Sep 1
12:58:05 2003
+++ phpdoc/en/reference/ibase/functions/ibase-num-fields.xml Mon Dec 15 11:50:37
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.12 -->
<refentry id="function.ibase-num-fields">
<refnamediv>
@@ -25,11 +25,11 @@
$coln = ibase_num_fields($rs);
for ($i = 0; $i < $coln; $i++) {
$col_info = ibase_field_info($rs, $i);
- echo "name: ".$col_info['name']."\n";
- echo "alias: ".$col_info['alias']."\n";
- echo "relation: ".$col_info['relation']."\n";
- echo "length: ".$col_info['length']."\n";
- echo "type: ".$col_info['type']."\n";
+ echo "name: " . $col_info['name'] . "\n";
+ echo "alias: " . $col_info['alias'] . "\n";
+ echo "relation: " . $col_info['relation'] . "\n";
+ echo "length: " . $col_info['length'] . "\n";
+ echo "type: " . $col_info['type'] . "\n";
}
?>
]]>
Index: phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml
diff -u phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.4
phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.5
--- phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.4 Mon Sep 22
08:23:30 2003
+++ phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml Mon Dec 15
11:50:37 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry id="function.ibase-set-event-handler">
<refnamediv>
<refname>ibase_set_event_handler</refname>
@@ -29,8 +29,7 @@
<![CDATA[
<?php
- function event_handler($event_name, $link)
- {
+ function event_handler($event_name, $link) {
if ($event_name=="NEW ORDER") {
// process new order
ibase_query($link, "UPDATE orders SET status='handled'");
@@ -40,7 +39,7 @@
}
}
- ibase_set_event_handler($link,"event_handler","NEW_ORDER","DB_SHUTDOWN");
+ ibase_set_event_handler($link, "event_handler", "NEW_ORDER", "DB_SHUTDOWN");
?>
]]>
</programlisting>
Index: phpdoc/en/reference/iconv/functions/iconv.xml
diff -u phpdoc/en/reference/iconv/functions/iconv.xml:1.6
phpdoc/en/reference/iconv/functions/iconv.xml:1.7
--- phpdoc/en/reference/iconv/functions/iconv.xml:1.6 Wed Jul 16 13:13:01 2003
+++ phpdoc/en/reference/iconv/functions/iconv.xml Mon Dec 15 11:50:38 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/iconv.xml, last change in rev 1.1 -->
<refentry id="function.iconv">
<refnamediv>
@@ -26,7 +26,7 @@
<programlisting role="php">
<![CDATA[
<?php
-echo iconv("ISO-8859-1","UTF-8","This is a test.");
+echo iconv("ISO-8859-1", "UTF-8", "This is a test.");
?>
]]>
</programlisting>
Index: phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml:1.4
phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml:1.5
--- phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml:1.4 Thu Dec 11 10:41:59
2003
+++ phpdoc/en/reference/ifx/functions/ifx-affected-rows.xml Mon Dec 15 11:50:39
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
<refentry id="function.ifx-affected-rows">
<refnamediv>
@@ -40,15 +40,15 @@
<programlisting role="php">
<![CDATA[
<?php
-$rid = ifx_prepare ("select * from emp
+$rid = ifx_prepare("select * from emp
where name like " . $name, $connid);
if (! $rid) {
/* ... error ... */
}
-$rowcount = ifx_affected_rows ($rid);
+$rowcount = ifx_affected_rows($rid);
if ($rowcount > 1000) {
- printf ("Too many rows in result set (%d)\n<br>", $rowcount);
- die ("Please restrict your query<br>\n");
+ printf ("Too many rows in result set (%d)\n<br />", $rowcount);
+ die ("Please restrict your query<br />\n");
}
?>
]]>
Index: phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml:1.4
phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml:1.5
--- phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml:1.4 Thu Dec 11 10:41:59
2003
+++ phpdoc/en/reference/ifx/functions/ifx-fetch-row.xml Mon Dec 15 11:50:39 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
<refentry id="function.ifx-fetch-row">
<refnamediv>
@@ -59,20 +59,20 @@
}
$rowcount = ifx_affected_rows($rid);
if ($rowcount > 1000) {
- printf ("Too many rows in result set (%d)\n<br>", $rowcount);
- die ("Please restrict your query<br>\n");
+ printf ("Too many rows in result set (%d)\n<br />", $rowcount);
+ die ("Please restrict your query<br />\n");
}
if (! ifx_do ($rid)) {
/* ... error ... */
}
$row = ifx_fetch_row ($rid, "NEXT");
while (is_array($row)) {
- for(reset($row); $fieldname=key($row); next($row)) {
+ for (reset($row); $fieldname=key($row); next($row)) {
$fieldvalue = $row[$fieldname];
printf ("%s = %s,", $fieldname, $fieldvalue);
}
- printf("\n<br>");
- $row = ifx_fetch_row ($rid, "NEXT");
+ printf("\n<br />");
+ $row = ifx_fetch_row($rid, "NEXT");
}
ifx_free_result ($rid);
?>
Index: phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml:1.4
phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml:1.5
--- phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml:1.4 Thu Dec 11
10:41:59 2003
+++ phpdoc/en/reference/ifx/functions/ifx-htmltbl-result.xml Mon Dec 15 11:50:39
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
<refentry id="function.ifx-htmltbl-result">
<refnamediv>
@@ -36,8 +36,8 @@
}
$rowcount = ifx_affected_rows ($rid);
if ($rowcount > 1000) {
- printf ("Too many rows in result set (%d)\n<br>", $rowcount);
- die ("Please restrict your query<br>\n");
+ printf ("Too many rows in result set (%d)\n<br />", $rowcount);
+ die ("Please restrict your query<br />\n");
}
if (! ifx_do($rid)) {
/* ... error ... */
Index: phpdoc/en/reference/ifx/functions/ifx-query.xml
diff -u phpdoc/en/reference/ifx/functions/ifx-query.xml:1.5
phpdoc/en/reference/ifx/functions/ifx-query.xml:1.6
--- phpdoc/en/reference/ifx/functions/ifx-query.xml:1.5 Thu Dec 11 10:41:59 2003
+++ phpdoc/en/reference/ifx/functions/ifx-query.xml Mon Dec 15 11:50:39 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 -->
<refentry id="function.ifx-query">
<refnamediv>
@@ -79,7 +79,7 @@
ifx_textasvarchar(1); // use "text mode" for blobs
$res_id = ifx_query("select * from orders", $conn_id);
if (! $res_id) {
- printf("Can't select orders : %s\n<br>%s<br>\n", ifx_error());
+ printf("Can't select orders : %s\n<br />%s<br />\n", ifx_error());
ifx_errormsg();
die;
}