Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: PHP  |  size: 0.38 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.    }