robin339 Posted February 9, 2007 Share Posted February 9, 2007 Hi I have a member login system in place. What I need is : To create a page, which members can access after they login and view some user specific information which I will upload(info about him/her account, kind of like looking at your own profile) example: the users email address is [email protected] Also to create a page that I can use to update/add info to that page for users by using their ID. example: I wanna use this page to add/delete/update "the users email address is [email protected]" Thanks a ton Link to comment https://forums.phpfreaks.com/topic/37744-how-to-show-member-info/ Share on other sites More sharing options...
tauchai83 Posted February 9, 2007 Share Posted February 9, 2007 u trying to maintain the user info across the page. You can use session to hold the user data or you can use cookie. There are a lot of example to use session/cookie. just include session_start(); on top of every page if you use session. Anyway,you need to register the session variable first by using session_register function. I'm not sure this is what you want, if not, please make your explanation clearer. If you trying to view own profile, just use SELECT statement to retrive from DB. $sql= "SELECT email from user WHERE userid='$userid'"; $result=mysql_query($sql); $row=mysql_fetch_assoc($result); $email= $row['email']; then, you just echo $email regards, chai Link to comment https://forums.phpfreaks.com/topic/37744-how-to-show-member-info/#findComment-180554 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.