<? $count_fotos = mysqli_result("SELECT COUNT(*) FROM `foto` WHERE `id_user` = '$ank[id]' AND `type` = 'foto'"); echo "($count_fotos)";?>