I do this thing:
mysql_query("SELECT * FROM startpoke WHERE id_poke='".$_SESSION['id']."'"); if(life > 0 ){ $res = mysql_query("UPDATE `startpoke` SET `life`=`life`-3 WHERE id_poke='".$_SESSION['id']."'")or die(mysql_error()) ; } else { echo "бе"; }
I have life
more than zero and it displays me "baa". Tell me, please, what to do?