forked from science-ation/science-ation
12 lines
273 B
PHP
12 lines
273 B
PHP
<?
|
|
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']);
|
|
}
|
|
}
|
|
?>
|