title: how to display loggein data from database without showing other's data from database in php?
body: <p>i want to display only login data from database at a time without showing all data from database.</p>
  <p>so that when i tried login by giving username and password all the data of that user will show at a  time.
  this is my code connection is working fine help me with query.</p>
  <pre><code>&lt;?php
  
  session_start();
  
  $con = mysqli_connect('localhost', 'root', 'Admin#12345');
  
  mysqli_select_db($con, 'userregistration');
  
  $selectquery = &quot; select * from usertable where email&quot;;
  $query = mysqli_query($con,$selectquery);
  
  $nums = mysqli_num_rows($query);
  
  
  while($res = mysqli_fetch_array($query)){
      echo $res['user'] . &lt;&quot;br&quot;&gt;;//
  </code></pre>
  <p>help me with query please.</p>