I'm getting this error:
Fatal error: [] operator not supported for strings
This is only happening when I upload to a live server. I have been developing the code, locally (using FoxServ - MySQL, PHP, etc).
Locally the code I am using works fine. Here is the code in question:
for( $i=0; $i < 14; $i++ ) {
$menu_selection_text = "menu_selection_" . ($i+1);
$menu_entree_id = $row[ $menu_selection_text ];
$_SESSION[ 'menu_entree_id' ][ ] = $menu_entree_id;
I've tried inserting
unset($_SESSION[ 'menu_entree_id' ]);
before, but it breaks it then when I upload it to test.
Any help is welcome. Thanks in advance.