yddib Posted September 8, 2008 Share Posted September 8, 2008 Hi, I am trying to pull a value from the database to be used in a session. Is this possible and how would I go about it? I have Sessions from login forms working where I can grab user name and password but I need to grab user_ID from the database as it is the Primary Key? Please help! Link to comment https://forums.phpfreaks.com/topic/123239-session-from-database/ Share on other sites More sharing options...
JasonLewis Posted September 8, 2008 Share Posted September 8, 2008 Sure, just grab it like you would normally then assign it normally. $userID = $row['user_ID']; $_SESSION['user_ID'] = $userID; Link to comment https://forums.phpfreaks.com/topic/123239-session-from-database/#findComment-636445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.