Jump to content

Profile Management


herghost

Recommended Posts

Hi All,

 

 

I have been poking around with PHP for a while now, and have learnt some basics like talking with mysql databases, registering users for a page on a website and displaying and editing data.

 

However, with the basic stuff I know, I am struggling to work out how something could work. I am trying to find a way of having a basic social network script, nothing to fancy, no blogs or anything that would require advanced skills.

 

I dont understand how I can have a user login to a page, be able to edit data etc and let this user, or a non registered user able to view other pages eg profiles.

 

Does anyone have any basics they could show me? Or a basic profile script? I am planning to do this in php with some AJAX functions which I will work out later.

 

I guess what this boils down to is; how do I make a user profile site?!

 

Thanks for any help or advice

Link to comment
https://forums.phpfreaks.com/topic/152600-profile-management/
Share on other sites

ok I think I have confused myself!

 

Ok here is a what I am trying to do, I have a working login script etc which once you have logged in takes you to member_index.php. Here at the moment is just a page which shows the users username and email address.

 

Now how can I assign this to a particular user? When you register the database assigns you an auto increment id. I am guessing that once you login it should take you to something like member_index? memberid1.php or something? How would I go about achieving this? I am guessing that if I get this working then I can have something in the php that says if user logged in is user1 then show edit controls if not then just show member_index? memberid1.php

 

Am I on the right lines here?

Link to comment
https://forums.phpfreaks.com/topic/152600-profile-management/#findComment-801519
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.