A voir également:
- Probleme syntaxe MYSQL
- Mysql community server - Télécharger - Bases de données
- Error 2002 (hy000): can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2) ✓ - Forum Linux / Unix
- Trouver erreur de syntaxe fichier txt - Forum Windows
- PHP Rechercher mot dans txt et supprimer ✓ - Forum PHP
- Impossible d'ouvrir un fichier txt avec Python ✓ - Forum Python
1 réponse
Bonsoir,
Il manque déjà 2 virgules.
De plus, n'oubliez pas que paramclient est une variable (il faut rajouter un $).
Essayez donc ça dans un 1er temps :
SELECT panier.*,article.titre,article.prix_ttc,
(article.prix_ttc*panier.quantite) AS total_ttc,
(article.prix_ht*panier.quantite) AS total_ht
FROM panier INNER JOIN article ON panier.articles=article.id
WHERE client = '$paramclient'
Note : prenez toujours l'habitude de mettre explicitement nom_table.nom_colonne - ça évitera les ambiguïtés en cas de jointures (je pense à votre client =..).
salutuations.
Il manque déjà 2 virgules.
De plus, n'oubliez pas que paramclient est une variable (il faut rajouter un $).
Essayez donc ça dans un 1er temps :
SELECT panier.*,article.titre,article.prix_ttc,
(article.prix_ttc*panier.quantite) AS total_ttc,
(article.prix_ht*panier.quantite) AS total_ht
FROM panier INNER JOIN article ON panier.articles=article.id
WHERE client = '$paramclient'
Note : prenez toujours l'habitude de mettre explicitement nom_table.nom_colonne - ça évitera les ambiguïtés en cas de jointures (je pense à votre client =..).
salutuations.