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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
<?
$SQL="SELECT bouquet.* FROM bouquet,categorie Where categorie.codecategorie = bouquet.codeCategorieFK";
$res = mysql_query($SQL) or die ("Erreur sur la requête qui affiche les adherents");
?>
Trier : <select>
<?
$SQL_trie = "SELECT libcategorie FROM categorie";
$res = mysql_query($SQL_trie);
while($val=mysql_fetch_array($res))
{
echo "<option>".$val["libcategorie"]."</option>\n";
}
?>
</select>
<table class='tableau' align="center">
<tr>
<th class='th'>Images</th>
<th class='th'>Fleurs</th>
<th class='th'>Voir la fiche</th>
</tr>
<?
while($ligne=mysql_fetch_array($res))
{
?>
<tr>
<td class='td'><img src='images/<?echo $ligne['image'];?>'></td>
<td class='td'><?echo $ligne['nomBouquet'];?></td>
<td class='td'><a href="VoirFiche.php?numBouquet=<? echo $ligne['numBouquet'];?>">Voir Fiche</a></td>
</tr>
<?
}
?>
</table><br/> |
Partager