v5:reference:connection:execute
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reference:execute [2015/07/18 20:59] – mnewnham | v5:reference:connection:execute [2016/01/17 00:36] – ↷ Page moved from v5:reference:execute to v5:reference:connection:execute mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box> | <WRAP right box> | ||
Line 10: | Line 10: | ||
===== Description ===== | ===== Description ===== | ||
- | The function | + | This method |
+ | |||
+ | |||
+ | The presentation of the returned data can be modified by the variables [[v5: | ||
===== Parameters ===== | ===== Parameters ===== | ||
==== Parameter 1 ==== | ==== Parameter 1 ==== | ||
Line 16: | Line 19: | ||
- A string containing a complete SQL statement. '' | - A string containing a complete SQL statement. '' | ||
- | - A string containing an SQL statement with bind variables, '' | + | - A string containing an SQL statement with bind variables, '' |
- A array of SQL Statements. This is only available to internal functions. | - A array of SQL Statements. This is only available to internal functions. | ||
==== Parameter 2 ==== | ==== Parameter 2 ==== | ||
If set, contains an array of bind variables. | If set, contains an array of bind variables. | ||
+ | ==== Result ===== | ||
+ | If the execution succeeds, it returns a recordset. This recordset can be used by functions such as [[v5: | ||
+ | if the execution fails, it returns false. You can access errors using [[v5: | ||
==== Usage ==== | ==== Usage ==== | ||
<code php> | <code php> | ||
- | $db-> | + | /* |
+ | * Connection assumed | ||
+ | */ | ||
+ | $result = $db-> | ||
+ | |||
+ | or: | ||
- | $db-> | + | $result = $db-> |
| | ||
); | ); |
v5/reference/connection/execute.txt · Last modified: 2023/01/15 20:32 by mnewnham