Okay people you have successfully failed to awnser my question, so i figured it out my self and here is the final awnser:
$sql = mysqli_query($con, "SELECT * FROM users
WHERE username='$usr'
LIMIT 1");
if(mysqli_num_rows($sql) == 1){
$_SESSION['error'] = "Username allready taken!";
header('Location: ./?page=signup') ;
}