ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:adodb_getone_eof

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
reference:adodb_getone_eof [2015/10/09 23:17] – created mnewnhamreference:adodb_getone_eof [2015/12/29 23:42] mnewnham
Line 2: Line 2:
 ====== $ADODB_GETONE_EOF ====== ====== $ADODB_GETONE_EOF ======
  
-<WRAP right 400px> +<WRAP right box round>
-<WRAP info>+
  
 |Type|mixed| |Type|mixed|
 |Default|null| |Default|null|
- 
-</WRAP> 
  
 </WRAP> </WRAP>
Line 22: Line 19:
 /* /*
 * *
 +*/ 
 +$ADODB_GETONE_EOF = null;
 $test = $db->getOne('select character_field from table where integer_field=1');   $test = $db->getOne('select character_field from table where integer_field=1');  
  
Line 29: Line 27:
     /*     /*
     * 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_1=1
-    * /+    */
 } }
-if ($test == null)+if ($test == false)
 { {
    /*    /*
     * We did not find any records OR the first record found that matched integer_1=1     * We did not find any records OR the first record found that matched integer_1=1
     * had a character_1 value of null     * had a character_1 value of null
-    * /+    */
 } }
 </code> </code>
v5/reference/adodb_getone_eof.txt · Last modified: 2023/06/19 15:27 by dregad