Okay, let me say this to begin with: Please don't shout. We're all here to help. Yes it may frustrate you, but it is not necessary. Second, please use the [ PHP ] BB Code tags or [ CODE ] tags (remove the space between the []'s).
Now, your script is very very minimal. I would retrieve the row of the user, and then check to see if the passwords match. This way, you know that you're getting the one row, and that the passwords will match or fail.
What you are doing with the check here:
if ($Recordset) {
die("<META http-equiv=\"Refresh\" content=\"0;url=view-blog.php\">");
exit();
is saying: If $Recordset is set, or holds a value, then die and refresh to view-blog.php. You aren't authenticating right so that users are directed to other pages.
Here's an example of my own Login.php form I usually use:
<?php
if(!isset($_REQUEST['username']) || empty($_REQUEST['username'])){
// Show the login page
}
else{
$sup_user = $_REQUEST['username'];
$sup_pass = md5($_REQUEST['password']);
$query = "SELECT * FROM users WHERE username = '$sup_user' LIMIT 1";
$result = mysql_query($result);
while($row = mysql_fetch_array($result)){
$db_pass = $row['password'];
}
if($db_pass === $sup_pass){
// Login successful, show them the page
}
else{
// Login Failed, show login again, clear values
}
}
?>
That's the login system I use.
But your error comes from your check of $Recordset. You have to check to see if is something (whatever value) or not, then it should work.
~Brett