v5:userguide:learn_abstraction:key_value_pairs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
v5:userguide:learn_abstraction:key_value_pairs [2016/03/17 01:20] – mnewnham | v5:userguide:learn_abstraction:key_value_pairs [2016/08/14 21:44] – mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
<- v5: | <- v5: | ||
+ | ~~NOTOC~~ | ||
====== Key/Value Pairs ====== | ====== Key/Value Pairs ====== | ||
+ | ===== An Associative Array ===== | ||
An often-used SQL construction is to read a table for a key/value pair. This can be used in creating Select Boxes, Radio groups etc. ADOdb contains a shortcut command [[v5: | An often-used SQL construction is to read a table for a key/value pair. This can be used in creating Select Boxes, Radio groups etc. ADOdb contains a shortcut command [[v5: | ||
Line 50: | Line 52: | ||
class jsonObject | class jsonObject | ||
{ | { | ||
+ | /* | ||
+ | * The jquery plugin requires each pair of data be a json object, | ||
+ | * with the key called ' | ||
+ | */ | ||
public $id; | public $id; | ||
public $text; | public $text; | ||
Line 80: | Line 86: | ||
The method [[v5: | The method [[v5: | ||
- | {{htmlmetatags> | + | {{htmlmetatags> |
- | {{htmlmetatags> | + | {{htmlmetatags> |
v5/userguide/learn_abstraction/key_value_pairs.txt · Last modified: 2021/02/21 13:45 by peterdd