if ($row['deaths'] == 0) { $ratio1 = $row['kills']; } else { $ratio1 = round($tkills1 / $deaths1 , 2); }