Fatal error: [] operator not supported for strings

From: Date: Mon, 18 Aug 2003 11:00:27 +0000
Subject: Fatal error: [] operator not supported for strings
Groups: php.general 
Request: Send a blank email to php-general+get-159902@lists.php.net to get a copy of this message
hi, how do i solve this error? Fatal error: [] operator not supported for strings in /var/www/html/p.../magazin/cos.php on line 13 line 13 is this line: $_SESSION["id_produs"][]=$_POST["id_produs"]; no error when i run in local host , when i upload in server (with PHP 4.2.2) only got this error. first time click is fine, but when i click the product once again, i got tat fatal error....how can i solve it?? pls advice. thanks.

« previous php.general (#159902) next »