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 Link to comment https://forums.phpfreaks.com/topic/172205-display-different-php-include-if-user-is-logged-in/ 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 ); Link to comment https://forums.phpfreaks.com/topic/172205-display-different-php-include-if-user-is-logged-in/#findComment-907968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.