php - while loop, if statement error -


for reason when using code gives me white screen, , can't find problem in it?

while ($monsterhp > 0 && $yourhp > 0) {  if ($pokemon4['speed'] => $row['speed']) {  $monsterhp = floor($monsterhp - $mydmg);  if($yourhp > 0) { $yourhp = floor($yourhp - $monsterdmg); }  }elseif ($pokemon4['speed'] < $row['speed']) {  $yourhp = floor($yourhp - $monsterdmg);  if ($monsterhp > 0) { $monsterhp = floor($monsterhp - $mydmg); }  } } 

you had error in operator: => (greater or equal)

it should this: >=


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -