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

search for in the

dbase_numrecords> <dbase_get_record
Last updated: Fri, 13 Nov 2009

view this page in

dbase_numfields

(PHP 4, PHP 5)

dbase_numfieldsデータベースのフィールド数を得る

説明

int dbase_numfields ( int $dbase_identifier )

指定したデータベースにおけるフィールド(カラム)数を取得します。

注意: フィールド番号は 0 から dbase_numfields($db)-1 までで、 一方レコード番号は 1 から dbase_numrecords($db) までです。

パラメータ

dbase_identifier

データベースのリンク ID 。dbase_open() あるいは dbase_create() によって返されます。

返り値

データベースのフィールド数を返します。エラーが発生した場合には FALSE を返します。

例1 dbase_numfields() の例

<?php

$rec 
dbase_get_record($db$recno);
$nf  dbase_numfields($db);
for (
$i 0$i $nf$i++) {
  echo 
$rec[$i], "\n";
}

?>

参考



add a note add a note User Contributed Notes
dbase_numfields
There are no user contributed notes for this page.

dbase_numrecords> <dbase_get_record
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites