PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
OK so I know the session array works because if i use print r, I see all data that has been passed to the new page. Now how do I access specific data in the array to place in specific parts of my html.
Hi the solution to your problem is quite simple. I encountered this when I was just starting out. Just enclose them session variables in curly braces like so:
$q = "SELECT * FROM `login` WHERE `username` = '{$_SESSION['login_username']}' AND `password` = '{$_SESSION['login_password']}'";