32 lines
847 B
PHP
32 lines
847 B
PHP
<?php
|
|
|
|
/** Îïòèìèçèðîâàíî. Õîòÿ íåÿñíî ÷òî ýòî äåëàåò.
|
|
* @var PDO $pdo
|
|
* @author Insallah
|
|
*/
|
|
const GAME = true;
|
|
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
|
|
|
$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 = ?',
|
|
];
|
|
|
|
$correct = $pdo->prepare($q[1]);
|
|
foreach ($pdo->query($q[0]) as $row) {
|
|
echo 'id: ' . $row['id'] . '<br>';
|
|
$correct->execute($row['id']);
|
|
}
|