What is the problem about my login script
<pre><code>    session_start();

    include( "db.php" );

    $hesap = mysql_fetch_array( mysql_query( "SELECT * FROM m_hesap where id = 1" ) );

    $_SESSION['control'] = false;

    if( $_SESSION['control'] != true ) {

        if( @$_POST['user'] == $hesap[1] &amp;&amp; @$_POST['pass'] == $hesap[2] ) {

            $_SESSION['control'] = true;

        }

    }

    if( $_SESSION['control'] == true ) {

        header( 'Location: kategoriler.php' );

    }
</code></pre>

<p>Everythin is ok if I wrote @$_POST['user'] == 'admin'  and @$_POST['pass'] == 'pass'.</p>

<p>but when I wrote @$_POST['user'] == $hesap[1]  and @$_POST['pass'] == $hesap[2] as in the code above I can't login the system. The informationt that I take with $_POST variables are true but I can't login the system</p>
