stuart7398 Posted April 8, 2008 Share Posted April 8, 2008 Hi. When the user logs in they see their links in the same page (as below). I moved the SESSION but it chopped half the page off when the user logged out. How can i get these links to show somewhere else, say the left nav bar? Thanks, Stuart. <?php require_once('auth.php'); ?> <?php $page_title = 'My Profile'; @ require_once ('../inc/head.php'); ?> <div class="members_nav"><a href="members/member-homepage.php">My Homepage</a> | <a href="members/member-profile.php">My Profile</a> | <a href="members/member-pictures.php">My Pictures</a> | <a href="members/logout.php">Logout</a></div> <?php require '../connect/config.php'; require '../connect/opendb.php'; $data = mysql_query("SELECT * FROM members WHERE member_id = '$SESS_MEMBER_ID' ") OR DIE (mysql_error()); $info = mysql_fetch_array( $data ); { Print "<p><br /><h1>Welcome Back ".$info['firstname']." ".$info['lastname']."</h1></p>"; } ?> </div></div> <?php @ require_once ('../inc/leftnav.php'); @ require_once ('../inc/rightnav.php'); @ require_once ('../inc/foot.php'); ?> Link to comment https://forums.phpfreaks.com/topic/100155-solved-member-links-to-show-somewhere-else-how-session/ Share on other sites More sharing options...
fenway Posted April 8, 2008 Share Posted April 8, 2008 This doesn't sound mysql-related... Link to comment https://forums.phpfreaks.com/topic/100155-solved-member-links-to-show-somewhere-else-how-session/#findComment-512212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.