double 형이 계산이 안되는데 계산 잘하시는분 계시나요??
본문
(double)$Exp += (double)$rows['exp'];
(double)$MaxExp = (double)$rows['maxExp'];
(double)$Remain = (double)$rows['remain'];
$Exp += (double)$gain;
if($Exp >= $MaxExp){
$Remain = (double)$Exp - (double)$MaxExp; //remain 1레벨 총량
LevelUp($email,$Remain);
}
$Remain += (double)$gain;
$sql = " update t1_members set exp='$Exp', maxExp='$MaxExp', remain='$Remain' where email='$email'";
//alert($sql);
//exit;
$row = mysqli_query($sql);
mysqli_error();
//die( "mysql connect error : " . mysql_error() );
!-->
답변을 작성하시기 전에 로그인 해주세요.