Ver originalwhile($row = $result->fetch_assoc()) { $total_del_todo_ganancias=0; $total_s_price=0; $total_buy_price=0;