n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/liens/html/show.php
2023-04-30 21:50:11 +02:00

53 lines
1 KiB
PHP

<?
echo "<a href=\"redirect.php?s=".$id."\" target=\"_blank\"&theme=$theme>".$sitenom."</a>
<br>".$description."<br><font size=2>".$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 "<br>Voir la cat&eacute;gorie
<a href=index.php?m=c&c=$varid[0]>
";
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 "</a>";
}
echo "</font><br><br>";
?>