포인트 증감 차액을 계산하는 법? 채택완료
홈짱
10년 전
조회 3,615
| 2014-11-05 16:56:39 | 수입 | 지출 | |
소계 출력 2,990 | +4,990 | -2,000 | |
도메인/bbs/point.php 파일에서
붉은색 소스를 추가해 소계 출력 부분에 수입 지출을 더한 값 2,990을 넣고 싶은데, 안 되네요. 뭐가 잘 못된걸까요?
HEREDOC;
}
if ($i == 0)
echo "
"; 자료가 없습니다. else {
if ($sum_point1 > 0)
$sum_point1 = "+" . number_format($sum_point1);
$sum_point2 = number_format($sum_point2);
$sum_point3 = $sum_point1 + $sum_point2;
$sum_point3 = number_format($sum_point3);
echo <<
소계{$sum_point3}
{$sum_point1}
{$sum_point2}
HEREDOC;
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인