PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_free_blob> <ifx_fieldproperties
Last updated: Fri, 10 Oct 2008

view this page in

ifx_fieldtypes

(No version information available, might be only in CVS)

ifx_fieldtypesInformix SQL フィールドのリスト

説明

array ifx_fieldtypes ( resource $result_id )

result_id のクエリについて、フィールド名をキーとし、 SQL フィールド型をデータとした連想配列を返します。

パラメータ

result_id

result_id は、 ifx_query() または ifx_prepare() (select 型のクエリのみ!) により返された有効な結果 ID です。

返り値

result_id のクエリについて、フィールド名をキーとし、 SQL フィールド型をデータとした連想配列を返します。 エラーの場合に FALSE を返します。

例1 フィールド名および SQL フィールド型

<?php
$types 
ifx_fieldtypes($resultid);
if (
is_array($types)) {
    foreach (
$types as $fname => $val) {
        echo 
"$fname:\t type = $val\n";
    }
}
?>



add a note add a note User Contributed Notes
ifx_fieldtypes
lord_edd at hotmail dot com
30-Apr-2002 06:46
Alternativly i found you can always do it like this using the foreach() loop...

    $types = @ifx_fieldtypes($resultid);
    if (isset($types))
    {
      foreach($types as $field_name => $data_type)
      {
         echo "{$field_name} {$data_type}";
      }
    }

ifx_free_blob> <ifx_fieldproperties
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites