echo "".$sitenom."
".$description."
".$url."";
if (isset($cat))
{
// affichage de la categorie
$x=0;
$i=0;
$requete3=mysql_db_query($base,"select * from ".$basecat." where id=".$cat." ",$link);
$nomcat = mysql_result($requete3,$i,"nomcat");
$nomcat=lire($nomcat);
$id = mysql_result($requete3,$i,"id");
$idsubcat = mysql_result($requete3,$i,"idsubcat");
$varid[$x]=$id;
$varnom[$x]=$nomcat;
echo "
Voir la catégorie
";
if($idsubcat!=0)
{
$x=1;
while($idsubcat!=0)
{
$requete2=mysql_db_query($base,"select nomcat, id, idsubcat from $basecat where id=".$idsubcat." ",$link);
$nomcat = mysql_result($requete2,$i,"nomcat");
$nomcat=lire($nomcat);
$id = mysql_result($requete2,$i,"id");
$idsubcat = mysql_result($requete2,$i,"idsubcat");
$varid[$x]=$id;
$varnom[$x]=$nomcat;
$x++;
}
$x=$x-1;
}
while($x!=-1)
{
echo " > ".$varnom[$x]."";
$x=$x-1;
}
echo "";
}
echo "
";
?>