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].