littlepeg Posted May 6, 2007 Share Posted May 6, 2007 Hi would anybody tell me that whether I could insert the value(eg. user_id) stored in session() into my database? If could, how can I do it? Any help would be grately and appreciated. Link to comment https://forums.phpfreaks.com/topic/50185-solved-a-question-about-session/ Share on other sites More sharing options...
mpharo Posted May 6, 2007 Share Posted May 6, 2007 yes you can, you just do it like you would any other variable $insert=mysql_query(INSERT INTO table (field) VALUES ('$_SESSION[var]' ) ); Link to comment https://forums.phpfreaks.com/topic/50185-solved-a-question-about-session/#findComment-246383 Share on other sites More sharing options...
littlepeg Posted May 6, 2007 Author Share Posted May 6, 2007 Thank you very much. That is very nice of you, mpharo. Link to comment https://forums.phpfreaks.com/topic/50185-solved-a-question-about-session/#findComment-246387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.