Jump to content


Photo

Hello fellow PHPers

mysql members information members

  • Please log in to reply
3 replies to this topic

#1 kh1e08

kh1e08

    Newbie

  • New Members
  • Pip
  • 0 posts

Posted 19 May 2013 - 08:52 AM

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



#2 philtyphil

philtyphil

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 25 June 2013 - 11:22 PM

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



#3 xenLiam

xenLiam

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts
  • LocationManila
  • Age:16

Posted 26 June 2013 - 06:49 AM

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.


Lives by faith, thinks by logic.


#4 sergramalli

sergramalli

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 30 June 2013 - 06:56 AM

Hello mate goodluck in your project!!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com