Menu
I’m trying to figure out away to toggle a persons user Id. On a page there is a link that when clicked that persons profile comes up. which sets the value $_get[id]. When this is done for some reason the session values are set the clicked persons values.. The session values need to stay to equal the logged in persons user Id.
hope this makes sense, any ideas how to fix this
[code=php]
if(isset($_GET[‘id’])){
$user_id = $_GET[‘id’];
}
if(!isset($_GET[‘id’])){
$user_id = $_SESSION[‘user_id’];
}