Failure of battle with a bot in the browser game

I made a fight:

<table>
<tr>
<TD><div align="left"><?php
$result = mysql_query("SELECT * FROM startpoke WHERE id_poke = '".$_SESSION['id']."'")or die("can't connect") ;    while( $row = mysql_fetch_array( $result ) ){
echo "<br>{$row['name_poke']}" ;
echo " - {$row['level']} lvl";
echo "<br>{$row['img']}";
echo "<br>{$row['life']} - HP"; }?></div></TD>
<TD><div align="CENTER"><?php
$res2 = mysql_query("SELECT * FROM attacks WHERE type = 'Fire'")or die("can't connect") ;    while( $row = mysql_fetch_array( $res2 ) ){
echo "<br>{$row['name']}" ; }
?></div></TD>
<TD><div align="right"><?php
$res = mysql_query("SELECT * FROM enemy WHERE id = 1")or die("can't connect") ;    while( $row = mysql_fetch_array( $res ) ){
echo "<br>{$row['name']}" ;
echo " - {$row['level']} lvl";
echo "<br>{$row['img']}";
echo "<br>{$row['life']} - HP"; }?></div></TD>
</tr>
</table>

How now to do so as the attack remove HP at the bot? And then so that the bot attacked me?


Answer 1, Authority 100%

$res = mysql_query("UPDATE `enemy` SET `life`='life-7' WHERE `id`='1'")or die(mysql_error()) ;

If I understood correctly. 7 hp Remove with this request