Gallardo,
Не пойму почему значение всегда -15
<?php
require_once ('../and.php');
if(!empty($us)){
$r = mysql_fetch_assoc(mysql_query("SELECT * FROM `arena` "
);
$gg = mysql_query("SELECT `id` FROM `users` WHERE `id` = '".abs(intval($_GET[id]))."' LIMIT 1"
;
$js = mysql_fetch_array($gg);
$oggy = mysql_query("SELECT * FROM `users` WHERE `id` = '".abs(intval($_GET[id]))."' LIMIT 1"
;
$og = mysql_fetch_array($oggy);
if(isset($_GET['uron']))
{
mysql_query("UPDATE `users` SET `xp` = `xp`- '5' WHERE `id` = '".$js['id']."' LIMIT 1"
;
echo '<script type="text/javascript">
window.location = "battle.php?id='.$r[mid].'"
</script>';
}
echo '<div class="up"><center>Арена</center></div>';
echo '<div class="menu">';
echo '<center>';
if($og["pro"]==stench) echo '<img src="../img/ava/stench.gif" alt="*" /></br>';
echo '</center>';
echo '</div>';
echo '<center>';
echo '<div class="menu"><b> ¤ '.$og['login'].'</b> <br /></div>';
echo '<div class="menu"><img src="../icon/xp.png" alt="*" /><font color="red"> '.$og['xp'].'/'.$og['maxhp'].' </font><br /></div>';
echo '</center>';
echo '<div class="menu">';
echo '<center>';
echo '</br></br><a href="battle.php?uron"><b>Простая атака</b></a>';
echo '</center>';
echo '</div>';
echo '<div class="pit"><a href="index.php">На главную</a></div>';
}
require_once ('../root/down.php');
?>