Quote:
Originally posted by Troy Roberts
Can you add a parameter so that I can delete users with 0 posts that joined more than, say, two months ago?
|
Sure thats simple enough
Code:
<?php
require("global.php");
$DB_site->query("DELETE from user WHERE POSTS = 0 AND joindate<UNIX_TIMESTAMP('2000-02-01')");
echo ("Worthless 0 Postin' users NUKED");
?>
That will delete users that have 0 posts and have registered before february 1st, 2000 (2000-02-01) the date is in yyyy-mm-dd format so be carefull with it!
BACKUP ALL DATA BEFORE EVER ATTEMPTING TO MANUALLY DELETE FROM YOUR DATABASE!!!!!!!!!!
~Chris