title: Function will not echo
body: <p>This is the function.</p>
  
  <pre><code>function UsernameFun($ULN) {
  if($ULN){
      if(empty($ULN-&gt;Nickname)){
          return $ULN-&gt;Username;
      } else {
          return $ULN-&gt;Nickname;
          }
      }
  }
  </code></pre>
  
  <p>$ULN is this</p>
  
  <pre><code>if(isset($_SESSION['Username'])) {
  $LoggedIn = mysql_query("SELECT * FROM Users WHERE Username='".$_SESSION['Username']."'"); 
  $ULN = mysql_fetch_object($LoggedIn);
  }
  </code></pre>
  
  <p>I am putting this to echo </p>
  
  <pre><code>echo"Logged in as ".UsernameFun($ULN-&gt;Username);
  </code></pre>
  
  <p>If you need to know anything else i will be glad to tell, but as of now i have no idea what else you would need to know.</p>
  
  <p>What i mean by it will not echo is that when i put </p>
  
  <pre><code>echo"Logged in as ".UsernameFun($ULN-&gt;Username);
  </code></pre>
  
  <p>only "Logged in as" will echo, Username or Nickname will not echo.</p>