i have php code for percentage calculating. but its calculate from number "100"
function percent($numpassed, $numtotal) { $count1 = $numpassed /