Просмотр поста #534501: У Вас есть один вопрос? - Тогда задайте его тут! new!

.
Alexis22
<?php
@ ini_set("max_execution_time", "600");
define('_IN_JOHNCMS', 1);
$headmod = 'panel';
$textl = 'Бонус фентези';
require_once ('../incfiles/core.php');
require_once ('../incfiles/head.php');
 
if ($rights < 9) {
    header('Location: http://meneger.org/');
    exit;
}
$q = @mysql_query("select * from `users` where id='" . $id . "' LIMIT 1;");
$users = @mysql_fetch_array($q);
 
if (isset($_POST['submit']))
{
$bonus = intval($_POST['bonus2']);
$allbonus = $bonus + $id[balans1];
 
mysql_query("UPDATE `users` SET `balans1`=`balans1`+'$bonus' WHERE `id` = '" . [id] . "' LIMIT 1");
 
 
 
 
header('location: /manag/index.php');
exit;
} 
else
{
echo '<div class="gmenu"><b>Бонус</b></div>';
echo '<div class="c"><p>
 
Фентези: <b>' . $users[balans1] . '</b><br/>
</p></div>';
echo '<div class="c"><p>';
echo '<form action="/panel/bonus2.php?id='.$users[id].'" method="post">';
echo '<input type="text" value="0" name="bonus2" size="5" maxlength="3"/>';
echo ' <input type="submit" value="Начислить" name="submit" />';
echo '</form>';
echo '</p></div>';
}
 
require_once ('../incfiles/end.php');
?>


Может кто поможет... почему не начисляет баланс? с кодом же все норм вроде