Hello,
I was working on a small project to make me think, and I ran across a problem when I was running a page. Instead of any error coming up, the page just produced the following, which was part of my code:
0 && $user_health > 0) { $monster_health = find_enemy_health($_SESSION['user_id'], $monster_id, $weapon_equipped, $user_health, $monster_health); if ($monster_health > 0) { $user_health = find_user_battle_health($_SESSION['user_id'], $monster_id, $armor_equipped, $user_health); } } if ($monster_health < 1 && $user_health > 0) { $monster_exp = find_monster_exp($monster_id); $user_exp = find_user_exp($user_id); $user_exp = $user_exp + $monster_exp; $success = update_user_exp($_SESSION['user_id'], $user_exp); $success2 = update_user_health($_SESSION['user_id'], $user_health); $total_success = $success + $success2; if ($total_success == 2) { $battle = battle_success($_SESSION['user_id'], $monster_id); } } else if ($user_health < 1) { $success = user_death($_SESSION['user_id'], $monster_id); } ?>
I'm not actually looking for an actual answer, but I don't know what kind of error this is, and why it happens, so that I might try to fix it myself.
If I need to, I can post the surrounding code, but I would like to try to solve it myself