Salve ragazzi,
stavo seguendo l'esempio di mircov nel thread:
http://forum.html.it/forum/showthrea...o&pagenumber=1
e ho questo codice per aggiungere i prodotti:
$_SESSION['carrellos'][$_GET['id_prodotto']]['qta']=$_GET['qta'];
Ora, se faccio:
mi esce:Codice PHP:
foreach ($_SESSION['carrellos'] as $key)
print $_SESSION['carrellos'][$key]['qta'];
Warning: Illegal offset type in /webi/_moduli/prodotti.php on line 8
Dove sbaglio?![]()