Quote:
Originally Posted by Psionic Vision
@MPDev:
The changes you introduced are not correct. Please look at the following two lines:
$deletions[] = "(`cdata` = '$ident[1]' AND `count` = '$data[0]' AND `ctype` = '$ident[0]' AND `cmisc` = '$data[2]')";
$insertions[] = "('$ident[1]', '" . ($data[0] + $data[1]) . "', '$ident[0]', '$data[2]')";
$data[0]+$data[1] is where the old count is added to the new count.
|
I believe you are incorrect - the reason is, as I pointed out for example, there are multiple US lines being printed; so for every US line, it overwrites the "old" value with a "new" value without taking into consideration that the results need to be cumulative during processing. In other words $data[1] needs to be a sum of all the results returned and not just the last result processed.
After alot of testing on my very busy site, I believe they are correct.