added getAffectedRows
added getAffectedRows

--- a/app/lib/Database/Mysql.php
+++ b/app/lib/Database/Mysql.php
@@ -75,6 +75,21 @@
 		}
 		return self::$db->insert_id;
 	}
+
+	/**
+	 * Fetches affected rows
+	 *
+	 * @param result $affectedRows
+	 * @return int
+	 */
+
+	public static function getAffectedRows ($queryId="")
+	{
+		if ($queryId == "") {
+			$queryId = self::$dbQueryId;
+		}
+		return self::$db->affected_rows;
+	}
 }
 
 ?>

comments