Requete sql sous php avec condition SVPPPPPP
Résolu/Fermé
mehdi9833
mehdi9833
- Messages postés
- 88
- Date d'inscription
- vendredi 16 octobre 2009
- Statut
- Membre
- Dernière intervention
- 23 mars 2010
mehdi9833
- Messages postés
- 88
- Date d'inscription
- vendredi 16 octobre 2009
- Statut
- Membre
- Dernière intervention
- 23 mars 2010
A voir également:
- Requete sql sous php avec condition SVPPPPPP
- Requete sql sous php avec condition SVPPPPPP ✓ - Forum - PHP
- Afficher resultat requete SQL via php ✓ - Forum - PHP
- Probleme de requete sql en php ✓ - Forum - Bases de données
- Boucle et requete (sql et php) ✓ - Forum - PHP
- Requête sql ds php ✓ - Forum - PHP
1 réponse
mehdi9833
4 janv. 2010 à 15:46
- Messages postés
- 88
- Date d'inscription
- vendredi 16 octobre 2009
- Statut
- Membre
- Dernière intervention
- 23 mars 2010
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' ";