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. Quote Link to comment 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]' ) ); Quote Link to comment 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. Quote Link to comment 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.