v5:reference:connection:replace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
v5:reference:connection:replace [2016/01/17 01:57] – ↷ Links adapted because of a move operation mnewnham | v5:reference:connection:replace [2024/03/04 02:44] (current) – second param is array, typos peterdd | ||
---|---|---|---|
Line 8: | Line 8: | ||
int replace( | int replace( | ||
| | ||
- | string | + | mixed $dataFields, |
mixed $keyColumn, | mixed $keyColumn, | ||
| | ||
Line 26: | Line 26: | ||
The primary key field name or if compound key, an array of field names | The primary key field name or if compound key, an array of field names | ||
==== $autoQuote ==== | ==== $autoQuote ==== | ||
- | Set this value to true to use a hueristic | + | Set this value to true to use a heuristic |
==== $primaryKeyIsAuto ==== | ==== $primaryKeyIsAuto ==== | ||
If the primary key is an auto-inc field, skip in insert. | If the primary key is an auto-inc field, skip in insert. | ||
Line 45: | Line 45: | ||
$tableName = ' | $tableName = ' | ||
$indexColumn = ' | $indexColumn = ' | ||
- | $ar = array(' | + | $data = array(' |
' | ' | ||
' | ' | ||
- | $status = $db-> | + | $status = $db-> |
/* | /* | ||
* Status code tells us if operation succeeded | * Status code tells us if operation succeeded |
v5/reference/connection/replace.1452992252.txt.gz · Last modified: 2017/04/21 11:33 (external edit)