v5:reference:recordset:getmenu
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:recordset:getmenu [2019/01/01 23:49] – mnewnham | v5:reference:recordset:getmenu [2019/11/24 00:16] (current) – Add wrap around fetch mode note dregad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== getMenu ====== | ====== getMenu ====== | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | <WRAP info> | ||
| - | This method requires that ADODB_FETCH_MODE be set to ADODB_FETCH_NUM prior to execution of the SQL statement that will provide the recordset. | ||
| - | </ | ||
| <WRAP right box> | <WRAP right box> | ||
| == See Also == | == See Also == | ||
| Line 10: | Line 7: | ||
| == Syntax == | == Syntax == | ||
| string getMenu( | string getMenu( | ||
| - | | + | string $selectName, |
| optional mixed $defaultValue=false, | optional mixed $defaultValue=false, | ||
| optional mixed $blankFirstItem=true, | optional mixed $blankFirstItem=true, | ||
| Line 22: | Line 19: | ||
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The function '' | + | |
| - | If the returned | + | The function '' |
| - | If the returned recordset | + | |
| - | If the recordset returns more than 2 columns, the 3rd and greater columns are discarded. | + | If the recordset has a single column, the option values and descriptions are the same. |
| + | If it has 2 columns, the first one is the description and the second | ||
| + | |||
| + | Any extra column beyond | ||
| + | |||
| + | <WRAP info left> | ||
| + | Until ADOdb 5.20.13, this method required that [[v5: | ||
| + | </ | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| ==== $selectName ===== | ==== $selectName ===== | ||
| Line 36: | Line 41: | ||
| * true (default) - creates an empty ''< | * true (default) - creates an empty ''< | ||
| * false - does not creates an empty ''< | * false - does not creates an empty ''< | ||
| - | * string value - creates an ''< | + | * string value - creates an ''< |
| * string value format '' | * string value format '' | ||
v5/reference/recordset/getmenu.1546382968.txt.gz · Last modified: by mnewnham
