For some reason when using this code it gives me a white screen, and I can't find the 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);
}
}
}