science-ation/db/db.update.174.php

12 lines
273 B
PHP
Raw Normal View History

<?
function db_update_174_post()
{
global $config;
$q = mysql_query("SELECT * FROM users WHERE deleted = 'yes'");
while($row = mysql_fetch_assoc($q)){
mysql_query("UPDATE users SET deleted = 'yes' WHERE uid = " . $row['uid'] . " AND year < " . $row['year']);
}
}
?>