v5:reference:connection:replace
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:connection:replace [2016/01/17 01:57] – ↷ Page moved from v5:reference:replace to v5:reference:connection:replace 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 16: | Line 16: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The function '' | + | The function '' |
| ===== Parameters ===== | ===== Parameters ===== | ||
| 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.1452992251.txt.gz · Last modified: (external edit)
