How should I use mysql_query?
<p>I'm having some problems with this function in the next code:</p>

<pre><code>if(!($_SESSION['autenticado']))
    if($_POST["user"] &amp;&amp; $_POST["pass"])
    {
        $user=$_POST["user"];
        $con=mysql_connect("localhost","root","3270");

            mysql_select_db("futbol",$con);
            $query = "SELECT us_pass FROM user WHERE us_nom = '$user'";
            print_r($query);
            mysql_real_escape_string($query);
            mysql_query($query)or die mysql_error();
            //print_r($pas);
            //$_SESSION["autenticado"]=1;
     }
</code></pre>

<p>Am I using it wrowng? </p>
