ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:database:text

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:database:text [2020/01/04 17:44] – [Workaround for current ADOdb 5.20.15] make the workaround more obvious by highlighting the difference dregadv5:database:text [2020/01/13 13:17] (current) – fix invalid tag specification dregad
Line 100: Line 100:
 $sql = 'select * from table'; $sql = 'select * from table';
  
 +// Does not work with PHP 5.3 or later, see workaround below
 $result = $db->execute($sql, false, "\$EMPNO==10005"); $result = $db->execute($sql, false, "\$EMPNO==10005");
  
Line 107: Line 108:
 </code> </code>
  
-===== Workaround for current ADOdb 5.20.15=====+===== Workaround ===== 
 + 
 +For PHP 5.3 or later, the following workaround can be used (tested with ADOdb 5.20.15).
  
 Replace the ''$result = $db->execute($sql, false, "\$EMPNO==10005");'' statement in the above sample by the following code. Replace the ''$result = $db->execute($sql, false, "\$EMPNO==10005");'' statement in the above sample by the following code.
Line 116: Line 119:
 $db->evalAll = false; $db->evalAll = false;
 </code> </code>
 +
 +{{tag>text deprecated}}
v5/database/text.1578156241.txt.gz · Last modified: 2020/01/04 17:44 by dregad