From fd4a6336b5c3b75441763ad1c4b780ce77e88d9b Mon Sep 17 00:00:00 2001 From: Ron Chmara Date: Sun, 10 Dec 2000 04:13:27 +0000 Subject: [PATCH] example for ibase_field_info git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@37490 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/ibase.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/functions/ibase.xml b/functions/ibase.xml index 3b4b5623ef..d9b057c32f 100644 --- a/functions/ibase.xml +++ b/functions/ibase.xml @@ -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. + + +// 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"; + } + +