Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in /home/d/dedfam80/dedfam80.beget.tech/public_html/register.php on line 14
$query=mysqli_query($con, "SELECT * FROM user WHERE username='".$username."'");
$numrows=mysqli_num_rows($query);