KK:
I found an error in the doreset subroutine.
You have
$DB_site->query("UPDATE banner SET views=0 AND guestclicks=0 AND userclicks=0 WHERE id='$bannerid'");
this only resets the views to 0 and the others do not get reset.
I changed this to:
$DB_site->query("UPDATE banner SET views=0,guestclicks=0,userclicks=0 WHERE id='$bannerid'");
and all get reset to zero as they should.
Thanks,
Parker
|