title: Get the data of specific user in PHP
body: <p>Now I have created a login form with a session, what I need now that when the user login with his username and password, get his data such as name, about etc.. and put it in the welcome page.</p>
  
  <p>Currently I have created this code but this code get all users data, </p>
  
  <pre><code> &lt;?php 
   mysql_connect("localhost", "root", "") or die(mysql_error()); 
   mysql_select_db("usersdata") or die(mysql_error()); 
   $data = mysql_query("SELECT * FROM userid") 
   or die(mysql_error()); 
   Print "&lt;table border cellpadding=3&gt;"; 
   while($info = mysql_fetch_array( $data )) 
   { 
   Print "&lt;tr&gt;"; 
   Print "&lt;th&gt;Name:&lt;/th&gt; &lt;td&gt;".$info['Name'] . "&lt;/td&gt; "; 
   Print "&lt;th&gt;Username:&lt;/th&gt; &lt;td&gt;".$info['Email'] . " &lt;/td&gt;&lt;/tr&gt;"; 
   } 
   Print "&lt;/table&gt;"; 
   ?&gt; 
  </code></pre>
  
  <p>I hope to find a way to do that. :D</p>