HTML_QuickForm_select::loadDbResult() (Previous) (Next) HTML_QuickForm_select::setMultiple()

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

HTML_QuickForm_select::loadQuery()

HTML_QuickForm_select::loadQuery() -- データベースに問い合わせ、その結果から選択肢を読み込む

説明

カラム名が指定されていない場合、結果の中の最初の 2 つのカラムが それぞれ表示テキストおよび値として使用されます。

パラメータ

mixed &$conn

既存の DB 接続あるいは有効な DSN。

string $sql

SQL クエリ文字列。

string $textCol

(オプション) OPTION のテキストとして表示するカラムの名前。

string $valueCol

(オプション) OPTION の値として使用するカラムの名前。

mixed $values

(オプション) 選択された値を表す、配列あるいはカンマ区切り文字列。

例外・エラー

PEAR_Error をスローします。

参照

load()loadDbResult()addOption() も参照ください。

注意

since 1.1

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

HTML_QuickForm_select::loadDbResult() (Previous) (Next) HTML_QuickForm_select::setMultiple()

Download Documentation Last updated: Sun, 05 Oct 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.