herghost Posted April 4, 2009 Share Posted April 4, 2009 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 More sharing options...
mentalist Posted April 4, 2009 Share Posted April 4, 2009 have you looked at sessions? Link to comment https://forums.phpfreaks.com/topic/152600-profile-management/#findComment-801435 Share on other sites More sharing options...
herghost Posted April 5, 2009 Author Share Posted April 5, 2009 hi, thanks for your reply. Yes I have. I underst6and you can link a login to a session etc, but i dont understand how I could use sessions to view other profiles apart from your own Link to comment https://forums.phpfreaks.com/topic/152600-profile-management/#findComment-801474 Share on other sites More sharing options...
mentalist Posted April 5, 2009 Share Posted April 5, 2009 Why would you want to? You generally allow the owner to edit it. Everyone else is allowed to view it, unless you do a must be logged in check, otherwise you'll want to be looking at group permissions. Link to comment https://forums.phpfreaks.com/topic/152600-profile-management/#findComment-801479 Share on other sites More sharing options...
herghost Posted April 5, 2009 Author Share Posted April 5, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.