<?
$a = mysql_fetch_array(mysql_query("SELECT max_health FROM `users` WHERE `id` = '".$user['id']."'"
);
if($a['health'] < $a['max_health']) {
mysql_query("UPDATE `users` SET `health` = '".($user['health'] + 1.00)."' WHERE `id` = '".$user['id']."' LIMIT 1"
;
} else { echo'х*й там';}
?>