working with session variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Connor T

    working with session variables

    Hi,

    I have this code:

    $itemCode["$basketCou nt"] = $id ;

    Both of the variables on the left are session variables.

    So this now has to become:

    $_SESSION['itemCode']["$_SESSION['basketCount']"] = $id;

    if register_global s are turned off.

    however that doesnt compile, so how should it be done properly?

    Rgds,
    Dan

Working...