TTP $query = "select sum(`points`) as `points` from `notary` where `to`='".intval($userid)."'"; $dres = mysql_query($query); $drow = mysql_fetch_assoc($dres); $points=$drow['points']; if ($points<1) { $points=0; } $res = get_received_assurances(intval($userid), 2); $ttp_assurances_count=$num_rows = mysql_num_rows($res); //Form ?>

=100 || $ttp_assurances_count>=2) { echo _('No TTP assurance allowed'); }else{ ?>