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'] ? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.