phpjay Posted July 18, 2011 Share Posted July 18, 2011 i have a code in session <?php $username= "$_SESSION[username]"; echo "Welcome: $username"</font>"; ?> i need to get the details of username like this: Welcome: test - is the username from DB Details: Name: Jonathan Iosli username: test Date Log In: July 18, 2011 Quote Link to comment https://forums.phpfreaks.com/topic/242246-session-details/ Share on other sites More sharing options...
TeNDoLLA Posted July 18, 2011 Share Posted July 18, 2011 So what is the problem? Use user_id or username or whatever value you get from session(?) to fetch detailed data from database and print them on the page as you wish. Quote Link to comment https://forums.phpfreaks.com/topic/242246-session-details/#findComment-1244021 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.