phpbar.de logo

Mailinglisten-Archive

AW: [php] Password/Mysql

AW: [php] Password/Mysql

Jörn Bier php_(at)_phpcenter.de
Fri, 17 May 2002 10:37:47 +0200


>ungetestet:
>SELECT COUNT(*) AS cnt
>   FROM usertabelle
>  WHERE username='$username' AND password=PASSWORD('$password');

Hallo Daniel,
besser wäre hier Passwörter als md5 zu kodieren und dann in mysql abzufragen
:select * from user where username='$username' and password =
md5('$password')

Gruss *Joern*


php::bar PHP Wiki   -   Listenarchive