Salve a tutti, avrei bisogno di un aiutino : il codice che non riesco a far funzionare è questo:
function completto($ffusername) {
global $admin_file,$currentlang,$pointsperview,$user,$gue stviewdetail,$viewed,$db, $module_name,$userinfo,$bgcolor1,$bgcolor2,$bgcolo r3,$cookie, $sitename, $prefix, $user_prefix, $db, $admin;
$result = $db->sql_query("select sex, birth, degree,oicq,selfintro,stapro,city,postcode,locatio n, object, method, other, photo, keyword, time, click, song,film, marriage,tel,country,user_occ,havechild, wantchild,drink,smoke,race,photopath,verified,last login,hasvoice,icq,msn,yahoomess,ip COUNT from ".$user_prefix."_user_profile1 where ffusername='$cookie[1]' ");
while(list($sex,$birth,$degree,$oicq,$selfintro,$s tapro,$city,$postcode,$location,$object,$method,$o ther,$photo,$keyword,$song,$film,$marriage,$tel,$c ountry,$user_occ,$havechild,$wantchild,$drink,$smo ke,$race,$photopath,$verified,$lastlogin,$hasvoice ,$icq,$msn,$yahoomess) = mysql_fetch_array($result)){
$num = '!';
if($num) {
$percent = 100 * $sex+$birth+$degree+$oicq+$selfintro+$stapro+$city +$postcode+$location+$object+$method+$other+$photo +$keyword+$song+$film+$marriage+$tel+$country+$use r_occ+$havechild+$wantchild+$drink+$smoke+$race+$p hotopath+$verified+$lastlogin+$hasvoice+$icq+$msn+ $yahoomess / $num;
} else {
$percent = 0;
}
$s=round($percent, $num);
//ora faccio il calcono della lunghezza dell immagine
$s1=$s*3;
echo "<div id=\"fillbar\"><span style=\"width:".$s1."px\"></span></div><div class=\"filltext\">$s% del profilo completato <span>(<a href=\"modules.php?name=Community&file=modifica_pr ofilo\">Inserisci altre informazioni</a>)</span></div>";
}
}
Avrei bisogno di un riusulta da 1 a 100 in base al numero delle colonne completate...