Problems with arrays
Posted: Fri Jun 03, 2005 9:28 pm
I have this code
When I load the page the first time it works.
After that it gives me this error:
It works fine on my machine locally. when I upolad
the file to the server it gives me this problem.
Someone said it happens when a string is assigned to an array that makes the problem. But it works on my computer.
Code: Select all
$_SESSION['productid'][] = $temp_productid ;After that it gives me this error:
Code: Select all
Fatal error: [] operator not supported for strings....the file to the server it gives me this problem.
Someone said it happens when a string is assigned to an array that makes the problem. But it works on my computer.