i want to display only login data from database at a time without showing all data from database.
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.
<?php
session_start();
$con = mysqli_connect('localhost', 'root', 'Admin#12345');
mysqli_select_db($con, 'userregistration');
$selectquery = " select * from usertable where email";
$query = mysqli_query($con,$selectquery);
$nums = mysqli_num_rows($query);
while($res = mysqli_fetch_array($query)){
echo $res['user'] . <"br">;//
help me with query please.