ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:getupdatesql

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
Next revisionBoth sides next revision
v5:reference:connection:getupdatesql [2016/01/16 22:15] – ↷ Page moved from v5:reference:getupdatesql to v5:reference:connection:getupdatesql mnewnhamv5:reference:connection:getupdatesql [2021/01/25 03:12] mnewnham
Line 10: Line 10:
         string[] $fieldArray,         string[] $fieldArray,
         optional bool $forceUpdate=false,         optional bool $forceUpdate=false,
-        optional bool $dontFixQuotes=false,+        optional bool $placeHolder=false,
         optional bool $forceType=null         optional bool $forceType=null
        )        )
Line 40: Line 40:
 Use of this parameter is tied to the now removed ''magic_quotes'' functionality and this parameter may be removed in future releases of ADOdb Use of this parameter is tied to the now removed ''magic_quotes'' functionality and this parameter may be removed in future releases of ADOdb
 </WRAP> </WRAP>
-==== $dontFixQuotes ==== +==== $placeHolder ==== 
-For a description of this behavior see [[v5:reference:qstr|qStr()]].+This argument was previously used for information about deprecated PHP functionality, and is now ignored 
 -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
 <WRAP right tip 300px> <WRAP right tip 300px>
Line 72: Line 72:
  
 $SQL = 'SELECT * FROM employees WHERE emp_no=10001'; $SQL = 'SELECT * FROM employees WHERE emp_no=10001';
-$result = $db->Execute($SQL);+$result = $db->execute($SQL);
  
 $updateArray = array('first_name'=>'Jerry', $updateArray = array('first_name'=>'Jerry',
Line 78: Line 78:
       'gender'=>'M');       'gender'=>'M');
  
-$SQL = $db->getUpdateSql($result,$updateArray); +$SQL = $db->getUpdateSql($result, $updateArray);
- +
-print $SQL+
 /* /*
- * returnsUPDATE employees + * returns 
 + UPDATE employees 
               SET FIRST_NAME='Jerry',                SET FIRST_NAME='Jerry', 
                   LAST_NAME='O\'reilly'                    LAST_NAME='O\'reilly' 
Line 94: Line 93:
  
 <code php> <code php>
-$SQL = $db->getUpdateSql($result,$updateArray.true);+$SQL = $db->getUpdateSql($result, $updateArraytrue);
 /* /*
  * returns  * returns
v5/reference/connection/getupdatesql.txt · Last modified: 2023/09/26 17:43 by dregad