Guest User

Untitled

a guest
May 8th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1.   $username= $_SESSION['validuser'];
  2.   $result = mysql_query("SELECT * FROM user WHERE username= '$username' AND passwd = PASSWORD('$passwdold')");
  3.   //Check for database error
  4.   //dberror($result);
  5.  
  6.  //If result is found, true otherwise password is wrong
  7.   if (mysql_num_rows($result)>0)
  8.    {
  9.    }
  10.    else
  11.    {
  12.    header('Location: myaccount.php?errcode=15');
  13.    exit;
  14.    }
Advertisement
Add Comment
Please, Sign In to add comment