Bonjour,

J'ai 1 champs de donnée EtatMateriel SET(1,2,3,4)
Je souhaiterai affiché cela: Si mon produit=1 j'affiche 'Tres bon état', si mon produit=2 'j'affiche 'Bon état, si mon produit=3 'j'affiche 'Etat de marche'

Je souhaiterai afficher un message pour chaque valeur sachant qu'une ligne peut contenir plusieurs valeurs du SET.

iF $EtatMateriel =1
echo ' très bon état;

If $EtatMateriel =2
echo ' bon état';

If $EtatMateriel =3
echo ' etat de marche';

Mon problème c'est que le IF affiche la première valeur disponible et non les autres si il y en a.

Merci pour votre aide
SOphie