Hi all. $_SESSION['history'] is an array. How do I add a value to it?? Like below??
$_SESSION['history'].= $sql;
One way would be:
$_SESSION['history'][] = $sql;
Read the PHP manual on arrays for more information.
Hi laserlight. I get the below error when I execute your code "$_SESSION['history'][] = $sql; ". Any idea what I'm doing wrong?
Cannot use a scalar value as an array
Nevermind laserlight. I figured it out. Thanks for all your help!
You're welcome 🙂 Remember to mark this thread as resolved (if it is) using the thread tools.