offdarip Posted August 27, 2009 Share Posted August 27, 2009 I have a php include as a header on my main page... I want my main page to display a different include as header if user is logged in.. Please help.. Thanks in advance Quote Link to comment Share on other sites More sharing options...
play_ Posted August 27, 2009 Share Posted August 27, 2009 $path = (isset($_SESSION['user_id']) ) ? '/includes/member_header.php' : '/includes/header.php'; include( $path ); 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.