1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
function affichercd($n)
{
$affiche=("select artiste,ref,num_cat,titre,prix from cd where num_cat=$n");
$rs=mysql_query($affiche) or die("PB requête sql");
echo "<table width=80% align=center>";
while($row=mysql_fetch_array($rs,MYSQL_ASSOC)){
echo "<tr>";
echo "<td>";
echo "$row[artiste]";
echo "</td>";
echo "<td>";
$url = rawurlencode("cat.asp?numcat=".$n."&nomcat=".$nomcatalogue."&refcd=".$row['ref']."&artiste=".$row['artiste']."&titre=".$row['titre']);
echo "<a href=\"{$url}\">";
echo "$row[titre]";
echo "</a>";
echo "</td>";
echo "<td>";
echo "$row[prix]" . " Dh</td>";
echo "</tr>";
}
echo "</table>";
mysql_close();
}
?> |