salut
erreur
Fatal error: Cannot use string offset as an array
dans
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 function MontantGlobal(){ $total=0; for($i = 0; $i < count($_SESSION['panier']['libelleProduit']); $i++) { $total += $_SESSION['panier']['qteProduit'][$i] * $_SESSION['panier']['prixProduit'][$i]; // * } return $total; }
aucun problème en local wamp5
erreur chez l'hebergeur php 5.2 (pas tout le temps !)
j'ai mis une astérisque sur la ligne concernée
Cette fonction fait partie du cours panier sessions sur ce site
merci de m'éclairer !
Partager