I want to get user information from a MySQL database. When the user goes to http://domainname .com/user.php?user=USERNAME, I want "USERNAME"'s info to be displayed, but it can never do the first query, I'm not sure if it is because the is an error in the query or in the get variable. Can someone find the error or tell me what I'm doing wrong? Thanks for the help!

PHP Code:
<?php
require("includes/redirect.php");
$flatUName $_GET['user'];
$flatSQL "SELECT Username FROM sq_users WHERE Username = '$flatUName'";
$goSQL mysql_query($flatSQL);
if(!
$flatSQL) die(mysql_error());
if(
== mysql_num_rows($goSQL)){
    
header('Location: '$root $logOut);
    
mysql_close($con);
    exit;
}
(If you need more code, just say.)