SELECT
    SUM(PAN.quantite * ART.prix) AS TOTAL
FROM
    panier AS PAN
    JOIN articles AS ART
        ON ART.idArticle = PAN.idArticle
WHERE
    PAN.idUser = 1;
