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

54 lines
1 KiB
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?
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>";
?>