Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by postgresql.org (Postfix) with ESMTP id 2E1694758DA for ; Wed, 10 Apr 2002 22:05:00 -0400 (EDT) Received: from user-2ivfmo7.dialup.mindspring.com ([165.247.219.7] helo=localhost) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16vTxP-0003Z6-00 for pgsql-sql@postgresql.org; Wed, 10 Apr 2002 19:05:03 -0700 Date: Wed, 10 Apr 2002 19:04:43 -0700 Subject: Re: crypt question (search mail list) Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v481) From: jeff fitzmyers To: SQL Content-Transfer-Encoding: 7bit In-Reply-To: <3CB4EC28.2EA348B7@heart.com.au> Message-Id: <7DAA2ED6-4CF0-11D6-A097-0003938387F4@earthlink.net> X-Mailer: Apple Mail (2.481) X-Archive-Number: 200204/125 X-Sequence-Number: 7390 > There was a post about a month ago about crypt and md5 > fields being compared to text values... This works for me: - $formpassword is the password entered on a webpage - $row_login[password] is the md5 saved password } elseif(md5($formpassword) <> $row_login[password]) { // } Jeff