title: returned value from class method not being displayed in text feild php
body: <p>I am trying to return the users values and display them in the update form, although they are not displaying. </p>
  
  <p><strong>Form page:</strong></p>
  
  <pre><code>&lt;?php
  $user_id = $_SESSION['user_session'];
  $user-&gt;getID($user_id);
  ?&gt;
      &lt;input type="text" name="username" size ="25" value="&lt;?php print $userRow['user_name'];?&gt;" placeholder="username"required/&gt;
  </code></pre>
  
  <p><strong>Class:</strong></p>
  
  <pre><code>public function getID($user_id)
   {
    $sql = "SELECT * FROM tbl_users WHERE user_id=:user_id";
    $stmt = Database::getInstance()-&gt;getConnection()-&gt;prepare($sql);
    $stmt-&gt;execute(array(':user_id'=&gt;$user_id));
    $userRow=$stmt-&gt;fetch(PDO::FETCH_ASSOC);
    return $userRow;
   }
  </code></pre>