$x = 20; // nb de catégories
$dercat = "SELECT * FROM $T_categories where activation = '1' ORDER BY id DESC LIMIT 0 , $X"
$res_dcat = send_sql($dercat,"trouver les 20 dernières catégories");
while ($une_categorie = mysql_fetch_array($res_dcat,MYSQL_ASSOC))
{
<a href="<?php echo id_to_url($une_categorie["id"],$une_categorie["cat_name"],'1'); ?>" class="link_cat_index_annuaire"><?php echo htmlspecialchars($une_categorie["cat_name"]); ?></a>
}
<?php
$res_dcat = mysql_query("SELECT * FROM $T_categories ORDER BY id DESC LIMIT 0 , 20");
while ($une_categorie = mysql_fetch_array($res_dcat,MYSQL_ASSOC))
{
?>
<a href="<?php echo id_to_url($une_categorie["id"],$une_categorie["cat_name"],'1'); ?>" class="link_cat_index_annuaire"><?php echo htmlspecialchars($une_categorie["cat_name"]); ?></a> <?php
//echo htmlspecialchars($une_categorie["cat_name"]);
echo "<br>";
}
?>