COM checkList

提供: GeeklogJpWiki

lib-common.php>COM checkList

説明

string   COM_checkList  (string $table, string $selection, [string $where = ''], [string $selected = ''])

データベースリストからformで使う<input>チェックリストをつくる。

  • 与えられた引数でチェックボックスフォームのフィールドを生成する。

パラメータ

string $table
DB Table to pull data from
string $selection
Comma delimited list of fields to pull from table
string $where
Where clause of SQL statement
string $selected
Value to set to CHECKED

返り値

HTML with Checkbox code

参考

個人用ツール