I think that there is something wrong with the syntax of my header command. It just doesn’t load that page! It’s like the whole command is skipped.
$num = mysql_numrows($rs);
if($num != 0)
{
echo("Log in is successful");
}
else
{
// This header code never works for some reason.
// If I replace it with a simple echo("login failed");
// command, it will work.
header("Location: index.php?sec=login&error=match");
exit();
}