forked from science-ation/science-ation
14 lines
430 B
PHP
14 lines
430 B
PHP
<?
|
|
function db_update_174_post()
|
|
{
|
|
global $config;
|
|
|
|
$q = mysql_query("SELECT * FROM users WHERE deleted = 'yes'");
|
|
while($row = mysql_fetch_assoc($q)){
|
|
echo "Flagging user records prior to " . $row['year'] . " for user " . $row['uid'] . " as deleted - ";
|
|
mysql_query("UPDATE users SET deleted = 'yes' WHERE uid = " . $row['uid'] . " AND year < " . $row['year']);
|
|
echo mysql_affected_rows() . " rows affected.\n";
|
|
}
|
|
}
|
|
?>
|