mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
example for ibase_field_info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@37490 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c3556275c7
commit
fd4a6336b5
1 changed files with 16 additions and 0 deletions
|
@ -339,6 +339,22 @@ magic_quotes_sybase = On
|
|||
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.
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
// helio@helio.com.br 08-Dec-2000 02:53
|
||||
|
||||
$rs=ibase_query("Select * from something");
|
||||
$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";
|
||||
}
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue