Doesn't work means, as should be self evident from the line itself, does not update the DB. If keno is > 0 it should set it to 0. It does not.
No errors no nothing, just doesn't update. The line before and the line after work fine.
To make it more interesting, check this. I removed the last line and added it to the 6th line - still doesn't work, but everything else in the line does.
And yes, I have checked and quadruple checked, and everything about this is correct. If I take that entire line 6 and run it from the command line, keno gets updated as it should - it is reset to '0'.
$db->query("UPDATE users SET daysingang=daysingang+1 WHERE gang > 0");
$db->query("UPDATE users SET rmdays=rmdays-1 WHERE rmdays > 0 ");
$db->query("UPDATE users SET rmpack=0 WHERE rmdays <= 0");
$db->query("UPDATE rmpacks SET rmDAYS=rmDAYS-1 WHERE rmDAYS > 0");
$db->query("DELETE FROM rmpacks WHERE rmDAYS <= 0");
$db->query("UPDATE users SET daysold=daysold+1, crack=0, boxesopened=0, bubbas=0, slots=0, roulette=0, searchdowntown=0, gamevote=0, defencecount=0, keno=0");
$db->query("UPDATE users SET mail=mail-1 WHERE mail > 0");
$db->query("UPDATE users SET forum=forum-1 WHERE forum > 0");
$db->query("DELETE FROM moth WHERE time < unix_timestamp()-86400");
$db->query("UPDATE settings SET logins=0");
So if it updates successfully from the command line, how can it not update while in the script above, especially since everthing elses updates just fine in this script.
Thx