title: getting a full name from database for user id and storing in session
body: <p>basically i want to get full_name and store that into a  session variable</p>
  
  <pre><code>session_start();
  
  $user_name= $_POST['name'];
  
  $result=$this-&gt;db-&gt;query("SELECT full_name FROM tbl_admin_users WHERE `user_id`='".$user_name."'");
  
  $_SESSION['user']= $result-&gt;row()-&gt;full_name;
  
  echo $_SESSION('user');
  </code></pre>