DB_result::fetchInto() (Previous) (Next) DB_result::free()

View this page in Last updated: Sun, 29 Jun 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

DB_result::fetchRow()

DB_result::fetchRow() -- 結果セットから行を取得する

説明

結果セットからデータの行を取得し、 結果ポインタを次の行に移動します。 データの形式は、配列あるいはオブジェクトとなります。

パラメータ

integer $fetchmode

使用するフェッチモード。デフォルトは DB_FETCHMODE_DEFAULT で、この場合は DB の現在のフェッチモードを使用します。 DB の現在のデフォルトフェッチモードは、 setFetchMode() を使用して変更可能です。 とりうる値は以下のようになります。

  • DB_FETCHMODE_ORDERED

  • DB_FETCHMODE_ASSOC

  • DB_FETCHMODE_OBJECT

integer $rownum

取得する行の番号。

返り値

mixed - 行のデータを含む配列あるいはオブジェクト、あるいは 結果セットの最後に到達した場合に NULL、 失敗した場合に DB_Error オブジェクトを返します。

注意

この関数は、スタティックにコールする ことはできません。

DB_result::fetchInto() (Previous) (Next) DB_result::free()

Download Documentation Last updated: Sun, 29 Jun 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.