Soru çözme yazılımında doğru cevap sayısı ve yanlış cevap sayısı şu şekilde gösteriyor;
<tr>
<th><?php echo __('Correct');?>/<br><?php echo __('Incorrect Question');?></th>
</tr>
<?php foreach($userMarksheet as $userValue):?>
<tr>
<td><span class="text-success"><?php echo$userValue['Subject']['correct_question'];?></span>/<span class="text-danger"><?php echo$userValue['Subject']['incorrect_question'];?></span></td>
</tr>
<?php endforeach;unset($userValue);?>Yapmak istediğim 2 şey var;1) 4 yanlış 1 doğruyu götürünce kalan net soru sayısını göstermek;
2) Çıkan net sayıyı, belli bir rakamla çarpıp sonucu göstermek (2,5 ile çarptırmak v.b)
Nasıl yapabilirim?
Teşekkürler.