Enrico Posted April 28, 2014 Share Posted April 28, 2014 Hello,I have the follow situation:I have a php login system thats redirect you to another page if the login was successful, the username from the login is stored in a session.So i have the username from the person who logged in, on the website: 'Welcome username'.But i want to have: 'Welcome Full Name'. I already have a sql database with the usernames, passwords and full names, but i don't know how to implement it.Database:Full Name Username PasswordJohn Smith john123 mypasswordMy question to you is if you can write a example code for me, that i can implement it on my login system.Thanks!Regards,Enrico Quote Link to comment https://forums.phpfreaks.com/topic/288083-get-other-data-from-table/ Share on other sites More sharing options...
Ch0cu3r Posted April 28, 2014 Share Posted April 28, 2014 If you know how to store the users username in the session then you should be able to work out how to do it for a the first name too. Quote Link to comment https://forums.phpfreaks.com/topic/288083-get-other-data-from-table/#findComment-1477536 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.