Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,140
- Plugin Contributions:
- 56
Add queryFactory class function to return the number of rows affected
As identified in this thread, the queryFactory class could benefit from an additional function that returns the number of rows affected by a previous INSERT, UPDATE, DELETE or REPLACE action. I suggest the following addition to /includes/classes/db/mysql/query_factory.php (Zen Cart v1.5.2 and later):
function affectedRows ()
{
return mysqli_affected_rows ($this->link);
}