Requete sql sous php avec condition SVPPPPPP
Résolu/Fermé
mehdi9833
Messages postés
88
Date d'inscription
vendredi 16 octobre 2009
Statut
Membre
Dernière intervention
23 mars 2010
-
4 janv. 2010 à 15:23
mehdi9833 Messages postés 88 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 23 mars 2010 - 4 janv. 2010 à 15:46
mehdi9833 Messages postés 88 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 23 mars 2010 - 4 janv. 2010 à 15:46
A voir également:
- Requete sql sous php avec condition SVPPPPPP
- Excel condition couleur - Guide
- Easy php - Télécharger - Divers Web & Internet
- (+) Sql - Forum Programmation
- Retour a la ligne php ✓ - Forum PHP
- Recherchev avec condition si ✓ - Forum Excel
1 réponse
mehdi9833
Messages postés
88
Date d'inscription
vendredi 16 octobre 2009
Statut
Membre
Dernière intervention
23 mars 2010
4
4 janv. 2010 à 15:46
4 janv. 2010 à 15:46
c'est cool j'ai trouvé la solution, au début je mettais des " " mais en faites cest des ' ' quil faut mettre pour la condition.
voici la requete au cas où :
"SELECT article_rattach.strCodeRattach , article_rattach.strLibelleRattach , article_rattach.strTypeRattach FROM aff_article_rattach INNER JOIN article_rattach ON aff_article_rattach.strCodeRattach = article_rattach.strCodeRattach WHERE (aff_article_rattach.strCode)= '". $strCode ."' AND article_rattach.strTypeRattach = 'GENERIQUE' ";
voici la requete au cas où :
"SELECT article_rattach.strCodeRattach , article_rattach.strLibelleRattach , article_rattach.strTypeRattach FROM aff_article_rattach INNER JOIN article_rattach ON aff_article_rattach.strCodeRattach = article_rattach.strCodeRattach WHERE (aff_article_rattach.strCode)= '". $strCode ."' AND article_rattach.strTypeRattach = 'GENERIQUE' ";