Sunday, 18 August 2013

PHP mySql - change statement to NOT delete certain values?

PHP mySql - change statement to NOT delete certain values?

DELETE FROM banned_users WHERE datetime < (NOW() - INTERVAL $ban MINUTE)
I'm currently using the above to only delete accounts where the ban has
lifted, however can i change the statement to NOT delete items where
'ban_length' != "INF"

No comments:

Post a Comment