v5:reference:adodb_assoc_case
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:reference:adodb_assoc_case [2019/05/08 16:51] – [ADODB_ASSOC_CASE] dregad | v5:reference:adodb_assoc_case [2022/06/08 16:14] (current) – [Usage] fix code samples to reflect correct initialization of ADODB_ASSOC_CASE dregad | ||
---|---|---|---|
Line 4: | Line 4: | ||
When returning data in **associative // | When returning data in **associative // | ||
- | It must be declared **before** | + | It must be declared **before** |
+ | Being a constant, it is of course not possible to change its value later on. | ||
Note that this setting has no effect on the casing of the actual data. | Note that this setting has no effect on the casing of the actual data. | ||
Line 29: | Line 30: | ||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
- | define(' | ||
require " | require " | ||
+ | define(' | ||
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | ||
- | // $db Connection assumed | + | $db = ADONewConnection(' |
+ | $db-> | ||
print_r($db-> | print_r($db-> | ||
Line 49: | Line 51: | ||
or: | or: | ||
+ | |||
<code php> | <code php> | ||
- | define(' | ||
require " | require " | ||
+ | define(' | ||
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | ||
- | // $db Connection assumed | + | $db = ADONewConnection(' |
+ | $db-> | ||
print_r($db-> | print_r($db-> | ||
Line 72: | Line 76: | ||
<code php> | <code php> | ||
- | define(' | ||
require " | require " | ||
+ | define(' | ||
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; | ||
- | // $db Connection assumed | + | $db = ADONewConnection(' |
+ | $db-> | ||
print_r($db-> | print_r($db-> |
v5/reference/adodb_assoc_case.txt · Last modified: 2022/06/08 16:14 by dregad