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
| <?php
require ('haut.php');
require ('../menu.php');
require ('../news.php');
$sql_prod ="SELECT * FROM produits WHERE Publier='1' AND FamilleProd = '".$_GET['IdCat']."'";
//stock dans la variable des fiches et de la table à consulter
$query_prod = mysql_query($sql_prod); //envoie de la variable stocké
$print_prod = mysql_fetch_array($query_prod);
//$result = mysql_num_rows($query_prod);// pour conpter les fiches de la catégorie selectionner
//requette de selection de IdCat correspondant à FamilleProd
$sql_familleprod ="SELECT * FROM produits_cat WHERE IdCat = '".$print_prod['FamilleProd']."'";
$query_familleprod = mysql_query($sql_familleprod);
$print_familleprod = mysql_fetch_array($query_familleprod);
?>
<div id="corps">
<h3> Notre Catalogue Produits : <?php echo $print_familleprod['NomCat']?></h3>
<br /><?php //echo $result; ?>
<br />
<?php
echo '<table align="center" border="0">';
echo '<tr>';
while ($print_prod = mysql_fetch_array($query_prod)){
echo '<td align="center"><strong>' .$print_prod['NomProd'].'</strong> <br/><a href="../boutique/ficheproduits.php?IdProd='.$print_prod['IdProd'].'"><img src="../boutique/img/'.$print_prod['ImgProd'].'" alt="'.$print_prod['NomProd'].' ref : '.$print_prod['RefProd'].'"/></a><br/><strong>'.number_format($print_prod['Puht']*1.196,2,',', ' ').' € TC</strong></td>';
number_format($print_prod['Puht']*1.196,2,',', ' ').' € TC</strong></td>';
}//endwhile;
echo '</tr>';
echo '</table> ';
?>
<table align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td ><img src="../i/anim/bouton_infos.gif" /></td>
</tr>
</table>
<br />
<br />
</div>
<?php require ('../pied.php'); ?> |
Partager