I have a session that I start on a login.php page that stores a value called "items" taken from a MySQL Database to $_SESSION['items']. I set the value of the array on a page and it displays fine... but when I do this, it doesn't display.
Does the PHP not work inside the HTML? If so, how can I fix it?
Does the session expire for some reason? How can I fix that?
Code:
<p id="items">
<?php
echo $_SESSION['items'];
?>
</p>
Does the PHP not work inside the HTML? If so, how can I fix it?
Does the session expire for some reason? How can I fix that?