[APPDB] admin.php: fix incorrect call to query_affected_rows
Michael Müller
michael at fds-team.de
Thu May 11 14:15:12 CDT 2017
Am 11.05.2017 um 20:27 schrieb Rosanne DiMesio:
> $hResult = query_parameters("DELETE FROM appNotes WHERE linkedWith != '0'");
> - echo "Deleted ".query_affected_rows()." links<br />";
> + echo "Deleted ".query_num_rows()." links<br />";
I suspect the new code is as broken as the old one. The function
query_num_rows returns the number of query results, which is always zero
for a DELETE query. The correct solution would be to implement
query_affected_rows() based on the corresponding php function [1].
[1]: http://php.net/manual/de/mysqli.affected-rows.php
More information about the wine-devel
mailing list