Advertisement
Guest User

Untitled

a guest
May 13th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if(isset($_POST['Login']))
  2. {
  3. $_user = $_POST['uname'];
  4. $_pass = $_POST['pass'];
  5.  
  6. //Lets look up the login information
  7. $__login1 = mysql_query("SELECT * FROM rmaUser Where userLogin = '$_user' ", $conn) or die (mysql_error());
  8. $__login2 = mysql_fetch_array($__login1);
  9. //lets check what the result was
  10. $__user = $__login2['userLogin'];
  11. $__pass = $__login2['userPass'];
  12.  
  13. // Is the Username and password valid or correct?
  14. if ($_user != $__user && $_pass != $__pass) {
  15. include "header.php";
  16. echo "<center>Sorry, Username or Password was Incorrect!<br>";
  17. } else {
  18. $co_time = time() + 1800;
  19. setcookie("rmaUserOn", "true", $co_time);
  20. echo "welcome";
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement