<?php
if(isset($user)){
$count_lvl = $user['lvl'];
$proc_lvl = $user['opyt'];
if($user['opyt'] == 0){
$db->query("UPDATE `user` SET `benzin` = '$user[bak]', `money` = `money` + 1000, `dollars` = `dollars` + ".($user['lvl']+1).", `lvl` = `lvl` + 1, `opyt` = '100' WHERE `id` = '$user[id]'");
$_SESSION['newlvl'] = 'ok';
}
}
?>