Login taking longer time
<p>I have got some problem with my log in process for the php file. If the username and the password are not matching, then it correctly shows the error report. But when it's right, it takes a longer time to respond and the log in process is not happening. What will be the problem?</p>

<pre><code>&lt;?php
include("connection.php");
$unme=$_POST['username'];
$pswrd=$_POST['password'];

$query_log=mysql_query("SELECT * FROM regst WHERE unme='$unme' and pswrd='$pswrd'");
$numrows=mysql_num_rows($query_log);
if($numrows!=0)
{
//  session_start();
    $info = mysql_fetch_array($query_log);
    if($info)
    {
        $_SESSION['uname']=$unme;   
    }
    header("location:account.php");
}
else
{
header("location:index.php?status=logerror");
}


?&gt;
</code></pre>

<p>and the account.php page code is</p>

<pre><code>&lt;?php
session_start();
$unme=$_SESSION['uname'];
include("connection.php");
$query_qt=mysql_query("SELECT * FROM regst WHERE unme='$unme'");
$info = mysql_fetch_array($query_qt);
while($info) {
    $qt=$info['points'];
}
echo "Question ".$qt;
if(empty($qt))
header("location:question1.php");
else if($qt=='1')
header("location:question2.php");   
else if($qt=='2')
header("location:question3.php");
?&gt;
</code></pre>
