(PHP3 >= 3.0.3, PHP4 )
array ifx_fieldtypes (int result_id)
array ifx_fieldtypes
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); }