v5:reference:connection:affected_rows
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
reference:affected_rows [2015/07/24 19:10] – created mnewnham | v5:reference:connection:affected_rows [2022/11/06 23:20] (current) – mnewnham | ||
---|---|---|---|
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-> | ||
/* | /* | ||
Line 25: | Line 30: | ||
*/ | */ | ||
</ | </ | ||
+ | |||
v5/reference/connection/affected_rows.txt · Last modified: 2022/11/06 23:20 by mnewnham