Bonjour
j'ai besoin de votre aide.
j'ai 4 tables mysql : produits->references->references_attributs->attributs
Table produits:
id_produit | nom_produit
1 | chemise
Table references :
id_reference | nom_reference
1 | chemise.rouge.36
2 | chemise.rouge.38
3 | chemise.rouge.40
4 | chemise.noir.36
5 | chemise.noir.40
Table references_attributs
id_reference | id_attribut
1 | 1
1 | 3
2 | 1
2 | 4
3 | 1
3 | 5
4 | 2
4 | 3
5 | 2
5 | 5
Table attributs
id_attribut | valeur
1 | rouge
2 | noir
3 | 36
4 | 38
5 | 40
chaque reference a 2 attributs taille + couleur
je veux lister juste les tailles de la chemise rouge(avec id_attribut = 1) qui sont (36/38/40)
merci d'avance
Partager