Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/
Share on other sites

  • 1 month later...

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

Link to comment
https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/#findComment-1437909
Share on other sites

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! :D I'm sure you'll like it here. I know I do. :P

 

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.

Link to comment
https://forums.phpfreaks.com/topic/278171-hello-fellow-phpers/#findComment-1437944
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.