title: MySQL SELECT From Current Session User
body: <p>I am using PHP and have session_start(); and $_SESSION['username'] at the top of the page. The user is logged in just fine.</p>
  
  <p>The problem is, I am trying to pull and display data from just the user that is logged on. Below is my current query and it is pulling from the first user in the table, not $_SESSION['username'] user. How do I adjust SELECT to specify to pull from the current logged on user? Thanks.</p>
  
  <pre><code>$result = mysql_query("SELECT * FROM members")
  or die(mysql_error());  
  
  $row = mysql_fetch_array( $result );
  
  echo "&lt;strong&gt;bio:&lt;/strong&gt; ".$row['bio'].'&lt;br /&gt;';
  </code></pre>