You have logged out successfully.

"; } if (isset($_POST['login'])) { $password = addslashes(trim($_POST['password'])); $password = md5($password); //echo $password; $result = mysql_query("select * from users where password = '$password'"); $row = mysql_fetch_assoc($result); if (empty($row['id'])) { $msg = "

Sorry, this password is incorrect.

"; } else { $_SESSION['user_id'] = $row['id']; $result2 = mysql_query("update users set lastlogin = '".now."' where id = $row[id]"); //$db->getResults(); //header("location: index.php"); $msg = "

You have logged in successfully. Go to the resources page to download the resources.

"; } } ?> This is my body >> Home
welcome

Please feel free to browse the site.
A password is required to access Resources.