Cannot use string offset as array
Posted: Sat Nov 07, 2009 6:43 am
This morning my script that worked fine is giving me errors.
Err: Cannot use string offset as array
It seems that every time I use $_SESSION['item']['item2'] it gives me the error.
In the setup, I set:
Later in the script, anywhere I check: I get the error.
It seems to handle if I only use the top level. $_SESSION['user'] == 9
Err: Cannot use string offset as array
It seems that every time I use $_SESSION['item']['item2'] it gives me the error.
In the setup, I set:
Code: Select all
$_SESSION['user']['level'] = 9Code: Select all
if ($_SESSION['user']['level'] == 9)It seems to handle if I only use the top level. $_SESSION['user'] == 9