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 [2016/01/17 02:47] – ↷ Page moved from v5:reference:getmenu2 to v5:reference:recordset:getmenu2 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~~ | ||
| + | |||
| + | |||
| + | <WRAP alert> | ||
| + | This method is deprecated and will be removed in a later release. | ||
| + | Use [[v5: | ||
| + | </ | ||
| <WRAP right box> | <WRAP right box> | ||
| + | == See Also == | ||
| + | [[v5: | ||
| + | [[v5: | ||
| + | |||
| + | |||
| == Syntax == | == Syntax == | ||
| string getMenu2( | string getMenu2( | ||
| Line 15: | 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.1452995229.txt.gz · Last modified: (external edit)
