Файл: golden_birds/dost_korm_sql.php
Строк: 5
<?
mysql_query("UPDATE `user` SET `birds_money` = '".($user['birds_money']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `money` = '".($user['money']-1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_progress_korm` = '".($user['birds_progress_korm']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
if ($user['birds_progress_korm']==10) {
mysql_query("UPDATE `user` SET `birds_progress_korm10` = '".($user['birds_progress_korm10']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+15;
mysql_query("UPDATE `user` SET `birds_progress_korm_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_korm']==50) {
mysql_query("UPDATE `user` SET `birds_progress_korm50` = '".($user['birds_progress_korm50']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+15;
mysql_query("UPDATE `user` SET `birds_progress_korm_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_korm']==100) {
mysql_query("UPDATE `user` SET `birds_progress_korm100` = '".($user['birds_progress_korm100']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+15;
mysql_query("UPDATE `user` SET `birds_progress_korm_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_korm']==150) {
mysql_query("UPDATE `user` SET `birds_progress_korm150` = '".($user['birds_progress_korm150']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+15;
mysql_query("UPDATE `user` SET `birds_progress_korm_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
if ($user['birds_progress_korm']==300) {
mysql_query("UPDATE `user` SET `birds_progress_korm300` = '".($user['birds_progress_korm300']+1)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
mysql_query("UPDATE `user` SET `birds_level` = '".($user['birds_level']+0.3)."' WHERE `id` = '$user[id]' LIMIT 1",$db);
$ti_1 = time()+15;
mysql_query("UPDATE `user` SET `birds_progress_korm_time` = ".$ti_1." WHERE `id` = '$user[id]' LIMIT 1",$db);
}
?>