hi does any one know why this code won't display my links

<div id="columnRight"><div id="innerColumnRight">
          <div class="marginBox">
                <h1>Second Menu</h1>
            
                <!-- Vertical Navigation Start -->
            <div id="navVertical">
                                    <ul>

<?php do { ?>
             
               
<?php

echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar['id'] . '">' . $row_side_bar['title'] . '</a></li>';
 

		    
?>
            
<?php } while ($row_side_bar = mysql_fetch_assoc($side_bar)); ?>
<?php if(isset($_SESSION['MM_Username'])){
 do { 
                
               
                  echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar_client['id'] . '">' . $row_side_bar_client['title'] . '</a></li>'; 
				  
				 

                  } while ($row_side_bar_client = mysql_fetch_assoc($side_bar_client));} ?>

		</ul>
            </div>
              
            <br />

there is says row side bar that display but where it says row_side_bar_client these wont display and i dont don't now why


thanks alot

hi does any one know why this code won't display my links

<div id="columnRight"><div id="innerColumnRight">
          <div class="marginBox">
                <h1>Second Menu</h1>
            
                <!-- Vertical Navigation Start -->
            <div id="navVertical">
                                    <ul>

<?php do { ?>
             
               
<?php

echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar['id'] . '">' . $row_side_bar['title'] . '</a></li>';
 

		    
?>
            
<?php } while ($row_side_bar = mysql_fetch_assoc($side_bar)); ?>
<?php if(isset($_SESSION['MM_Username'])){
 do { 
                
               
                  echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar_client['id'] . '">' . $row_side_bar_client['title'] . '</a></li>'; 
				  
				 

                  } while ($row_side_bar_client = mysql_fetch_assoc($side_bar_client));} ?>

		</ul>
            </div>
              
            <br />

Are you sure $_SESSION is set? Try removing the closing bracket at the end of line 29.

Are you sure $_SESSION is set? Try removing the closing bracket at the end of line 29.

yes mate u are right i remove $_SESSION and the link showed but i don't know why it is no picking up the $_SESSION as my login is setting it here is part of my login code

<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  session_start();
}

$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
  $_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['username'])) {
  $loginUsername=$_POST['username'];
  $password=$_POST['password'];
  $MM_fldUserAuthorization = "level";
  $MM_redirectLoginSuccess = "main.php";
  $MM_redirectLoginFailed = "login.php";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_motters, $motters);
  	
  $LoginRS__query=sprintf("SELECT user_name, password, level FROM users WHERE user_name=%s AND password=%s",
  GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); 
   
  $LoginRS = mysql_query($LoginRS__query, $motters) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  if ($loginFoundUser) {
    
    $loginStrGroup  = mysql_result($LoginRS,0,'level');
    
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;	      

    if (isset($_SESSION['PrevUrl']) && false) {
      $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];	
    }
    header("Location: " . $MM_redirectLoginSuccess );
  }
  else {
    header("Location: ". $MM_redirectLoginFailed );
  }
}
?>

can you see anithing wrong

i have done it thanks

i put this instead

<div id="navVertical">
                                    <ul>

<?php do { ?>
             
               
<?php

echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar['id'] . '">' . $row_side_bar['title'] . '</a></li>';
 

		    
?>
            
<?php } while ($row_side_bar = mysql_fetch_assoc($side_bar)); ?>
<?php if(isset($_SESSION['MM_UserGroup']) <= 0){
 do { 
                
               
                  echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar_client['id'] . '">' . $row_side_bar_client['title'] . '</a></li>'; 
				  
				 

                  } while ($row_side_bar_client = mysql_fetch_assoc($side_bar_client));} ?>

		</ul>
            </div>

thanks alot:)

i click the up arrow on your post