v5:reference:recordset:getmenu2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:reference:recordset:getmenu2 [2019/01/01 22:44] – mnewnham | v5:reference:recordset:getmenu2 [2019/11/24 00:12] (current) – [getMenu2] deprecated: redirect to getMenu(); no longer required to use ADODB_FETCH_NUM dregad | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== getMenu2 ====== | ====== getMenu2 ====== | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | < | + | |
- | This method | + | |
+ | < | ||
+ | This method | ||
+ | Use [[v5: | ||
</ | </ | ||
<WRAP right box> | <WRAP right box> | ||
Line 23: | Line 26: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The function '' | + | The function '' |
- | ===== Parameters ===== | + | |
- | ==== $selectName ===== | + | |
- | name of SELECT tag | + | |
- | ==== $defaultValue ==== | + | |
- | The value to highlight. Use an array for multiple highlight for listbox. | + | |
- | ==== $blankFirstLine ==== | + | |
- | true to leave the 1st item in list empty | + | |
- | ==== $multiple ==== | + | |
- | Set true to create a multi-select box | + | |
- | ==== $numberOfRows ==== | + | |
- | Number of rows to show for multi-select box | + | |
- | ==== $optionalAttributes ==== | + | |
- | Additional attributes to defined for SELECT tag, useful for holding javascript onChange=' | + | |
- | ==== $compareAgainstFirstCol ==== | + | |
- | When we have 2 cols in recordset, we compare the defstr with column 0 (1st col) if this is true. | + | |
- | ===== Usage ===== | + | |
- | <code php> | + | |
- | /* | + | |
- | * Connect to DB2 Sample Database | + | |
- | */ | + | |
- | $SQL = " | + | |
- | $result = $db-> | + | |
- | + | ||
- | $html = $result-> | + | |
- | + | ||
- | print $html | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | <code html> | + | |
- | <select name=" | + | |
- | < | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | <option value=' | + | |
- | </ | + | |
- | + | ||
- | </ | + |
v5/reference/recordset/getmenu2.1546379047.txt.gz · Last modified: 2019/01/01 22:44 by mnewnham