합산결과 노출하는법.. 가위바위보 게임사이트인데요.. 정보
합산결과 노출하는법.. 가위바위보 게임사이트인데요..본문
주사위 걸고 가위바위보해서 따먹는 게임인데요
걸은돈 과 이기면 받는돈의 총 결과를 표시하고 싶습니다.
맨 밑에이겼다 총 결과와 졌다 총 결과처럼요..
걸은돈 : <strong><?=number_format($bet[$i][3])?></strong> 원</td>
이기면 받는돈 : <strong><?=number_format($bet[$i][5])?></strong> 원
이겼다 :
<strong>
<?
if($betRT == 0 && $total_betting_ing == 0){
$sum_hit_rate += $hit_rate;
?>
<font color="#852459"><?=number_format($hit_rate)?></font>
<?}else{?>
0
<?}?>
</strong>
원
if($betRT > 0 && $row[bo_state] != "취소"){
$mileage_point = ($bet[$i][3] * $row[mb_bet_loose_percent]) / 100;
$sum_lose_rate += $bet[$i][3];
?>
<br/>
졌다(<?=$row[mb_bet_loose_percent]?>%) : <strong><?=number_format(round($mileage_point, -1))?></strong> 원
<?
}
}
?>
</td>
</tr>
</table>
echo "<table><tr><td><strong>이겼다 총 주사위:".number_format($sum_hit_rate)."</strong></td></tr></table>";
echo "<table><tr><td><strong>졌다 총 주사위:".number_format($sum_lose_rate)."</strong></td></tr></table>";
?>
걸은돈 과 이기면 받는돈의 총 결과를 표시하고 싶습니다.
맨 밑에이겼다 총 결과와 졌다 총 결과처럼요..
걸은돈 : <strong><?=number_format($bet[$i][3])?></strong> 원</td>
이기면 받는돈 : <strong><?=number_format($bet[$i][5])?></strong> 원
이겼다 :
<strong>
<?
if($betRT == 0 && $total_betting_ing == 0){
$sum_hit_rate += $hit_rate;
?>
<font color="#852459"><?=number_format($hit_rate)?></font>
<?}else{?>
0
<?}?>
</strong>
원
if($betRT > 0 && $row[bo_state] != "취소"){
$mileage_point = ($bet[$i][3] * $row[mb_bet_loose_percent]) / 100;
$sum_lose_rate += $bet[$i][3];
?>
<br/>
졌다(<?=$row[mb_bet_loose_percent]?>%) : <strong><?=number_format(round($mileage_point, -1))?></strong> 원
<?
}
}
?>
</td>
</tr>
</table>
echo "<table><tr><td><strong>이겼다 총 주사위:".number_format($sum_hit_rate)."</strong></td></tr></table>";
echo "<table><tr><td><strong>졌다 총 주사위:".number_format($sum_lose_rate)."</strong></td></tr></table>";
?>
댓글 전체