v5:reference:connection:getassoc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| v5:reference:connection:getassoc [2017/05/09 00:57] – [Description] mnewnham | v5:reference:connection:getassoc [2017/05/09 01:09] (current) – mnewnham | ||
|---|---|---|---|
| Line 129: | Line 129: | ||
| | | ||
| </ | </ | ||
| + | ===== How ADODB_ASSOC_CASE affects returned data ===== | ||
| + | In certain instances, the '' | ||
| + | <code php> | ||
| + | /* | ||
| + | * Connection to mysql ' | ||
| + | */ | ||
| + | $SQL = " | ||
| + | $r = $db-> | ||
| + | print_r($r); | ||
| + | /* | ||
| + | * Returns: | ||
| + | Array | ||
| + | ( | ||
| + | [Georgi] => Wielonsky | ||
| + | [Bezalel] => Ranon | ||
| + | [Parto] => Kambil | ||
| + | ........ | ||
| + | ) | ||
| + | */ | ||
| + | </ | ||
| + | Setting ADODB_ASSOC_CASE to ASSOC_CASE_LOWER: | ||
| + | <code php> | ||
| + | /* | ||
| + | * Connection to mysql ' | ||
| + | */ | ||
| + | $SQL = " | ||
| + | $r = $db-> | ||
| + | print_r($r); | ||
| + | /* | ||
| + | * Returns: | ||
| + | Array | ||
| + | ( | ||
| + | [Georgi] => Array | ||
| + | ( | ||
| + | [last_name] => Wielonsky | ||
| + | [emp_no] => 499814 | ||
| + | ) | ||
| + | |||
| + | [Bezalel] => Array | ||
| + | ( | ||
| + | [last_name] => Ranon | ||
| + | [emp_no] => 499846 | ||
| + | ) | ||
| + | |||
| + | [Parto] => Array | ||
| + | ( | ||
| + | [last_name] => Kambil | ||
| + | [emp_no] => 499529 | ||
| + | ) | ||
| + | ....... | ||
| + | ) | ||
| + | */ | ||
| + | </ | ||
| + | Setting ADODB_ASSOC_CASE to ASSOC_CASE_UPPER: | ||
| + | <code php> | ||
| + | /* | ||
| + | * Connection to mysql ' | ||
| + | */ | ||
| + | $SQL = " | ||
| + | $r = $db-> | ||
| + | print_r($r); | ||
| + | /* | ||
| + | * Returns: | ||
| + | Array | ||
| + | Array | ||
| + | ( | ||
| + | [Georgi] => Array | ||
| + | ( | ||
| + | [LAST_NAME] => Wielonsky | ||
| + | [EMP_NO] => 499814 | ||
| + | ) | ||
| + | |||
| + | [Bezalel] => Array | ||
| + | ( | ||
| + | [LAST_NAME] => Ranon | ||
| + | [EMP_NO] => 499846 | ||
| + | ) | ||
| + | |||
| + | [Parto] => Array | ||
| + | ( | ||
| + | [LAST_NAME] => Kambil | ||
| + | [EMP_NO] => 499529 | ||
| + | ) | ||
| + | ....... | ||
| + | ) | ||
| + | */ | ||
| + | </ | ||
| + | |||
| ===== Using The Recordset Method ===== | ===== Using The Recordset Method ===== | ||
v5/reference/connection/getassoc.1494284228.txt.gz · Last modified: by mnewnham
