v5:reference:adodb_getone_eof
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
reference:adodb_getone_eof [2015/10/09 23:28] – mnewnham | v5:reference:adodb_getone_eof [2023/06/19 15:26] – [Syntax] fix incorrect field names in code sample comments dregad | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== $ADODB_GETONE_EOF ====== | ====== $ADODB_GETONE_EOF ====== | ||
- | <WRAP right 400px> | + | <WRAP right box round> |
- | <WRAP info> | + | |
|Type|mixed| | |Type|mixed| | ||
Line 10: | Line 9: | ||
</ | </ | ||
- | </ | + | This is a global variable that determines what the [[v5:reference:connection: |
- | + | ||
- | This is a global variable that determines what the [[reference: | + | |
If the value that is being retrieved can return an empty or 0 value, it is important to do an exact comparison on the returned value to distinguish between queries where the value of the record found is empty and queries where no record is found | If the value that is being retrieved can return an empty or 0 value, it is important to do an exact comparison on the returned value to distinguish between queries where the value of the record found is empty and queries where no record is found | ||
Line 22: | Line 19: | ||
/* | /* | ||
* | * | ||
+ | */ | ||
$ADODB_GETONE_EOF = null; | $ADODB_GETONE_EOF = null; | ||
$test = $db-> | $test = $db-> | ||
Line 28: | Line 26: | ||
{ | { | ||
/* | /* | ||
- | * We did not find any records that matched the value of integer_1=1 | + | * We did not find any records that matched the value of integer_field=1 |
- | * / | + | */ |
} | } | ||
if ($test == false) | if ($test == false) | ||
{ | { | ||
/* | /* | ||
- | * We did not find any records OR the first record found that matched | + | * We did not find any records OR the first record found that matched |
- | * had a character_1 | + | * integer_field=1 |
- | * / | + | */ |
} | } | ||
</ | </ |
v5/reference/adodb_getone_eof.txt · Last modified: 2023/06/19 15:27 by dregad