2022-06-06 21:30:34 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
2022-08-11 10:38:38 +00:00
|
|
|
|
/** <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
* @var PDO $pdo
|
|
|
|
|
* @author Insallah
|
|
|
|
|
*/
|
|
|
|
|
const GAME = true;
|
|
|
|
|
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2022-08-11 10:38:38 +00:00
|
|
|
|
$q = [
|
|
|
|
|
'select id from rep where repemeraldscity > 1999 order by add_stats desc',
|
|
|
|
|
'update rep set
|
|
|
|
|
nu_capitalcity = 0,
|
|
|
|
|
nu_demonscity = 0,
|
|
|
|
|
nu_angelscity = 0,
|
|
|
|
|
nu_suncity = 0,
|
|
|
|
|
nu_dreamscity = 0,
|
|
|
|
|
nu_abandonedplain = 0,
|
|
|
|
|
nu_sandcity = 0,
|
|
|
|
|
nu_emeraldscity = 0,
|
|
|
|
|
add_stats = 0,
|
|
|
|
|
add_skills = 0,
|
|
|
|
|
add_slot = 0
|
|
|
|
|
where id = ?',
|
|
|
|
|
];
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2022-08-11 10:38:38 +00:00
|
|
|
|
$correct = $pdo->prepare($q[1]);
|
|
|
|
|
foreach ($pdo->query($q[0]) as $row) {
|
|
|
|
|
echo 'id: ' . $row['id'] . '<br>';
|
|
|
|
|
$correct->execute($row['id']);
|
|
|
|
|
}
|