Top $max\n"; echo "
Top $max
"; echo "
Ajouter votre site\n"; if (empty($comm)) { $comm = 0; } $mysql_link = mysql_connect($mysql_host, $mysql_user, $mysql_pass); $sql = "SELECT * FROM $mysql_table ORDER BY hitsin DESC LIMIT $comm, $max"; $result = mysql_db_query($mysql_base, $sql, $mysql_link); $enregistrements = mysql_num_rows($result); echo "
"; echo "
"; echo ""; if (empty($i) || $i < 1) { $i = 1; } while ($resultat = mysql_fetch_array($result)) { if ($i < $max_fich) { echo ""; } elseif ($i == $max_fich) { echo ""; if ($pub) { echo "
Classement
Adresse
Description du site
$i

".$resultat[nom].""; if ($bandeau) { echo "
"; } echo "

".$resultat[description]."

Hits In = ".$resultat[hitsin]."; Hits out = ".$resultat[hitsout]."
$i

".$resultat[nom].""; if ($bandeau) { echo "
"; } echo "

".$resultat[description]."

Hits In = ".$resultat[hitsin]."
"; echo "

"; echo ""; } else { echo ""; } } else { echo ""; } $i++; } echo "
$i

".$resultat[nom]."

".$resultat[description]."

Hits In = ".$resultat[hitsin]."
"; echo "
"; $sql1 = "SELECT count(*) FROM $mysql_table"; $res = mysql_db_query($mysql_base, $sql1, $mysql_link); $tgb = mysql_fetch_array($res); $tgb2 = $tgb[0]; if ($comm >= $max) { echo "Début | "; $calcul = $comm-$max; echo "Précedent"; echo " | "; } if ($comm + $max < $tgb2) { echo " "; $calcul2 = $comm+$max; echo "Suivant"; echo " | "; $pos = ($tgb2 - ($tgb2 % $max)); if (($tgb2 % $max) == 0) $pos = $pos - $max; $calcul3 = $pos; echo "Fin"; } echo "
"; echo ""; ?>