kh1e08 Posted May 19, 2013 Share Posted May 19, 2013 Hi everyone, First of all I am very relieved to find this community. I am new to PHP and I am very interested in it but I have a lot to learn and I dont think I could manage without a community like this.At the moment I am putting together a site where there is a members area. I have successfully managed to do this but I would like for the members area page to load information this is pulled from a MySQL database that is personal to the person that logs in. I am not sure of the terminology but I hope you get the idea. If i can clarify anything just let me know. thank you guys, kh1e08 Quote Link to comment https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/ Share on other sites More sharing options...
philtyphil Posted June 26, 2013 Share Posted June 26, 2013 Hi everyone, First of all I am very relieved to find this community. I am new to PHP and I am very interested in it but I have a lot to learn and I dont think I could manage without a community like this. At the moment I am putting together a site where there is a members area. I have successfully managed to do this but I would like for the members area page to load information this is pulled from a MySQL database that is personal to the person that logs in. I am not sure of the terminology but I hope you get the idea. If i can clarify anything just let me know. thank you guys, kh1e08 Me To Quote Link to comment https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/#findComment-1437909 Share on other sites More sharing options...
xenLiam Posted June 26, 2013 Share Posted June 26, 2013 Hi everyone, First of all I am very relieved to find this community. I am new to PHP and I am very interested in it but I have a lot to learn and I dont think I could manage without a community like this. At the moment I am putting together a site where there is a members area. I have successfully managed to do this but I would like for the members area page to load information this is pulled from a MySQL database that is personal to the person that logs in. I am not sure of the terminology but I hope you get the idea. If i can clarify anything just let me know. thank you guys, kh1e08 Hello! First of all, welcome to the forums! I'm sure you'll like it here. I know I do. Anyway, to your problem (although you should really post this in PHP Help, but I'll still try to help you out), you could store the username in a session variable, and make queries to the database to pull information through mysqli_fetch_array() using the username you stored. For example, if the username is "admin", store it in $_SESSION['user'] = "admin"; (given that you already started a session), then use that to fetch data from the database, in which that data would only be visible to the user "admin". Sure, it isn't the safest way to do it, but that would be how the concept would go. Quote Link to comment https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/#findComment-1437944 Share on other sites More sharing options...
sergramalli Posted June 30, 2013 Share Posted June 30, 2013 Hello mate goodluck in your project!! Quote Link to comment https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/#findComment-1438646 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.