I'm trying to insert php array into sql database like this:
$i=1
$sql="INSERT INTO table(itemname) VALUES ('$_SESSION[someVariable][$i]')";
however, the name in the database is always Array[1]. it is not the value contained in $_SESSION[someVariable][$i]
I wonder if there is anyway to declare this? I know I'm messing up with the quotes
$array['i1']='fish';echo $array['i1'];=fish