ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:affected_rows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v5:reference:connection:affected_rows [2018/06/11 10:17]
dregad [Usage] function names starting with lowercase (#426)
v5:reference:connection:affected_rows [2022/04/03 12:48] (current)
dregad Add tip wrap
Line 8: Line 8:
 The function ''affected_rows()'' returns the number of rows affected (add/change/delete) by the last SQL statement executed, or false if the database does not support the function or the statement is not an update. See the driver documentation for support. Most multi-user databases support the command The function ''affected_rows()'' returns the number of rows affected (add/change/delete) by the last SQL statement executed, or false if the database does not support the function or the statement is not an update. See the driver documentation for support. Most multi-user databases support the command
  
-**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).**+<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). 
 +</WRAP> 
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
v5/reference/connection/affected_rows.txt · Last modified: 2022/04/03 12:48 by dregad