Re: [APPDB] admin.php: fix incorrect call to query_affected_rows
11 May
2017
11 May
'17
7:15 p.m.
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
3139
Age (days ago)
3139
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Müller