Jump to content

[SOLVED] Member links to show somewhere else. How? Session.


stuart7398

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.