IM not sure how to mark this as resolved, but thanks MCHL. I looked into referencing and that is what was happening.
This is the fix
if($tmpDATE!=$preDATE){
$preDATE=$tmpDATE;
$tmpDATE=$rs->Fields('countedDATE');
$tmpACOUNT=0;
$tmpBCOUNT=0;
$tmpCCOUNT=0;
}
Had to create a fake date before the query runs forcing the if statement to be true. You have to set the referenced variables in the above order or else they will always return the same value. Set First Variable Set Second Variable = to First Variable Change 1st Variable. That was confusing.
Thanks Again