I can not get the syntax of this php code to work

Go To StackoverFlow.com

0

$_SESSION[{'\'testingrecord'.$testingrecordsfec.'\''}]

this originally looked like this

${'testingrecord'.$testingrecordsfec}

but I need to add the variables created here into the globals $_SESSION

this variable is created foreach item in an array.

I.E

$testingrecord0
$testingrecord1
$testingrecord2
2012-04-05 20:23
by Shane E. Bryan


1

Remove the {} and the \'.

$_SESSION['testingrecord'.$testingrecordsfec];

$_SESSION is just like any other array, and keys can be any expression that results in a string or integer.

2012-04-05 20:26
by Niet the Dark Absol
Thanks, I tried everything but that : - Shane E. Bryan 2012-04-05 20:54
Ads