jd2007 Posted July 22, 2007 Share Posted July 22, 2007 if($profile['member_id']==$_SESSION['user_id']) { //edit and view the page } else { //view the page } the above code lets other members view another member's page but not being able to edit it... how to get $profile['member_id'] ? Link to comment https://forums.phpfreaks.com/topic/61222-how-to-let-members-view-other-members-profile/ Share on other sites More sharing options...
redarrow Posted July 22, 2007 Share Posted July 22, 2007 your $_SESSION['user_id'] look's like the users profile id use that ok Link to comment https://forums.phpfreaks.com/topic/61222-how-to-let-members-view-other-members-profile/#findComment-304593 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.