리스트에서 wr_1 - wr_2 =
본문
리스트에서
<?=$list[$i][wr_1]?> 빼기(-) <?=$list[$i][wr_2]?> 값을
여기에 <?php echo $tot ?> 으로 출력하려는데 도와주십시오...
답변 2
아래 소스를 참조해주세요.
<? echo $tot = (int)$list[$i][wr_1] - (int)$list[$i][wr_2]; ?>
<?=$tot = $list[$i][wr_1] - $list[$i][wr_2] ?>
답변을 작성하시기 전에 로그인 해주세요.