полная функцыя case 'save1':
if (isset($user) & $u['money'] < $color[cena1])
{
echo "Недостаточно баллов.Надо :$color[cena1] баллов.А у вас <b>$u[money]</b>\n";
}else{
mysql_query("UPDATE `users` SET `money` = '".($u['money']-30)."' WHERE `id` = '".$u['id']."'"
;
mysql_query("UPDATE `users` SET `money` = '".($u['money']-$color['200'])."' WHERE `id` = '$u[id]' LIMIT 1",$db);
mysql_query("UPDATE `users` SET `ncolor`='#00008B' WHERE `id` = '$u[id]'"
;
mysql_query("UPDATE `users` SET `ncolor2`='#FFA500' WHERE `id` = '$u[id]'"
;
echo 'Сохранено!<br/>'; } break;
case 'save2':
if (isset($user) & $u['money'] < $color[cena1])
{
echo "Недостаточно баллов.Надо :$color[cena1] баллов.А у вас <b>$u[money]</b>\n";
}else{
mysql_query("UPDATE `users` SET `money` = '".($u['money']-$color['200'])."' WHERE `id` = '$u[id]' LIMIT 1",$db);
mysql_query("UPDATE `users` SET `ncolor`='#00FF00' WHERE `id` = '$u[id]'"
;
mysql_query("UPDATE `users` SET `ncolor2`='#0000FF' WHERE `id` = '$u[id]'"
;
echo 'Сохранено!<br/>'; } break;