v5:reference:connection:affected_rows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
v5:reference:connection:affected_rows [2016/01/16 22:36] – ↷ Page moved from v5:reference:affected_rows to v5:reference:connection:affected_rows mnewnham | v5:reference:connection:affected_rows [2022/04/03 12:48] – Add tip wrap dregad | ||
---|---|---|---|
Line 6: | Line 6: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The function '' | + | The function '' |
+ | |||
+ | <WRAP tip> | ||
+ | Because the connection only supports a single global instance of this variable, it is important to **retrieve the value of this method before executing another SQL statement** (of any type). | ||
+ | </ | ||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
Line 12: | Line 17: | ||
* connection assumed | * connection assumed | ||
*/ | */ | ||
- | $db->Execute(' | + | $db->execute(' |
print $db-> | print $db-> | ||
Line 19: | Line 24: | ||
*/ | */ | ||
- | $db->Execute(' | + | $db->execute(' |
print $db-> | print $db-> | ||
/* | /* |
v5/reference/connection/affected_rows.txt · Last modified: 2022/11/06 23:20 by mnewnham