mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Example layout fixes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@139449 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9a0c143c4f
commit
bed6b181c5
3 changed files with 24 additions and 20 deletions
|
@ -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.9 -->
|
||||
<refentry id="function.ibase-fetch-object">
|
||||
<refnamediv>
|
||||
|
@ -21,7 +21,7 @@
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<php
|
||||
<?php
|
||||
$dbh = ibase_connect ($host, $username, $password);
|
||||
$stmt = 'SELECT * FROM tblname';
|
||||
$sth = ibase_query ($dbh, $stmt);
|
||||
|
|
|
@ -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.23 -->
|
||||
<refentry id="function.ibase-field-info">
|
||||
<refnamediv>
|
||||
|
@ -19,19 +19,21 @@
|
|||
Returns an array with information about a field after a select
|
||||
query has been run. The array is in the form of name, alias,
|
||||
relation, length, type.
|
||||
</para>
|
||||
<para>
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$rs=ibase_query("SELECT * FROM tablename");
|
||||
$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";
|
||||
$rs = ibase_query("SELECT * FROM tablename");
|
||||
$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";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.ibase-timefmt">
|
||||
<refnamediv>
|
||||
|
@ -22,15 +22,17 @@
|
|||
of the string. <parameter>columntype</parameter> is one of the
|
||||
constants IBASE_TIMESTAMP, IBASE_DATE and IBASE_TIME. If omitted,
|
||||
defaults to IBASE_TIMESTAMP for backwards compatibility.
|
||||
</para>
|
||||
<para>
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// InterBase 6 TIME-type columns will be returned in
|
||||
// the form '05 hours 37 minutes'.
|
||||
ibase_timefmt("%H hours %M minutes", IBASE_TIME);
|
||||
?>
|
||||
]]>
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* InterBase 6 TIME-type columns will be returned in
|
||||
* the form '05 hours 37 minutes'. */
|
||||
ibase_timefmt("%H hours %M minutes", IBASE_TIME);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue