Bonjour,
mysql_connect("localhost","root","");
mysql_select_db("gestion_stock");
$var=mysql_query("select *from produit");
echo "<tr><th>NOM produit</th>
<th>Designation</th>
<th>Prix Unitaire</th>
<th>Quantité</th>
<th>Code Catégorie</th>
<th>Quantité Seuil</th>
</tr>";
while($row = mysql_fetch_array($var)){
if($row['NOM PRODUIT']= 'ANANAS ' ){
ECHO 'FRUIT';
}
</style>
else{
ECHO 'LEGUME';
}
?>
MAIS CE CODE CA NE DONNNE AUCUNE RESULTAT