Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

ifx_fieldtypes

(PHP 3>= 3.0.3, PHP 4 )

ifx_fieldtypes -- Informix SQL フィールドのリスト

説明

array ifx_fieldtypes ( int result_id)

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

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

$types = ifx_fieldtypes ($resultid);
if (! isset ($types)) {
  ... エラー処理 ...
}
for ($i = 0; $i < count($types); $i++) {
    $fname = key($types);
    printf("%s :\t type =  %s\n", $fname, $types[$fname]);
    next($types);
}