v5:reference:connection:autoexecute
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:connection:autoexecute [2016/01/17 01:09] – ↷ Page moved from v5:reference:autoexecute to v5:reference:connection:autoexecute mnewnham | v5:reference:connection:autoexecute [2026/03/11 11:53] (current) – [Description] formatting dregad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== autoExecute ====== | ====== autoExecute ====== | ||
| - | <WRAP info> | + | |
| - | autoExecute is designed to provide a robust simple interface to record updating and insertion. As such, it contains multiple layers of table, column and data validation to ensure data integrity prior to record insertion or update. Consequently, | + | |
| - | </ | + | |
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| + | |||
| <WRAP right box> | <WRAP right box> | ||
| == See Also == | == See Also == | ||
| [[v5: | [[v5: | ||
| == Syntax == | == Syntax == | ||
| - | | + | |
| | | ||
| | | ||
| Line 14: | Line 13: | ||
| | | ||
| | | ||
| - | | ||
| ) | ) | ||
| - | |||
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The function '' | ||
| - | AutoExecute() inserts or updates | + | The '' |
| + | |||
| + | autoExecute() inserts or updates | ||
| + | |||
| + | Until 5.22, the function returned a boolean value, with //true// indicating success and // | ||
| + | |||
| + | <WRAP info> | ||
| + | autoExecute() is designed to provide a simple and robust interface to record updating and insertion. As such, it contains multiple layers of table, column and data validation to ensure data integrity; in particular, | ||
| + | </ | ||
| ==== $table ==== | ==== $table ==== | ||
| Line 32: | Line 37: | ||
| ==== $mode ===== | ==== $mode ===== | ||
| - | Legal values for `$mode` are | + | Legal values for ` $mode ` are |
| ^String^Integer^Constant^ | ^String^Integer^Constant^ | ||
| Line 47: | Line 52: | ||
| |true|All fields provided are updated|The constructed statement may be considerably larger| | |true|All fields provided are updated|The constructed statement may be considerably larger| | ||
| - | ==== $dontFixQuotes==== | ||
| - | For a description of this parameter, see [[v5: | ||
| - | |||
| ==== Usage ==== | ==== Usage ==== | ||
| - | + | <code php> | |
| - | AutoExecute($table, $arrFields, $mode, $where=false, | + | autoExecute($table, $arrFields, $mode, $where=false, |
| + | </ | ||
| === Insert example === | === Insert example === | ||
| Line 61: | Line 63: | ||
| $record[" | $record[" | ||
| - | $conn->AutoExecute($table, | + | $conn->autoExecute($table, |
| /* | /* | ||
| Line 75: | Line 77: | ||
| $where | $where | ||
| - | $conn->AutoExecute($table, | + | $conn->autoExecute($table, |
| /* | /* | ||
| Line 91: | Line 93: | ||
| $where | $where | ||
| - | $conn->AutoExecute($table, | + | $conn->autoExecute($table, |
| /* | /* | ||
v5/reference/connection/autoexecute.1452989362.txt.gz · Last modified: (external edit)
